54 lines
1.5 KiB
Java
54 lines
1.5 KiB
Java
package o;
|
|
|
|
import java.io.ByteArrayOutputStream;
|
|
import java.io.IOException;
|
|
import java.net.Proxy;
|
|
import java.util.HashMap;
|
|
|
|
/* renamed from: o.gnk, reason: case insensitive filesystem */
|
|
/* loaded from: classes6.dex */
|
|
public abstract class AbstractC15335gnk {
|
|
private HashMap a;
|
|
private int b;
|
|
protected Proxy c;
|
|
public boolean d;
|
|
private String e;
|
|
public String f;
|
|
public String g;
|
|
protected int h;
|
|
protected String j;
|
|
|
|
public AbstractC15335gnk() {
|
|
this.h = 20000;
|
|
this.e = "";
|
|
this.b = 262144;
|
|
this.a = new HashMap();
|
|
}
|
|
|
|
public AbstractC15335gnk(String str, int i) {
|
|
this.h = 20000;
|
|
this.e = "";
|
|
this.b = 262144;
|
|
this.a = new HashMap();
|
|
this.j = str;
|
|
this.h = i;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public final byte[] d(C15273gmG c15273gmG, String str) throws IOException {
|
|
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(this.b);
|
|
byteArrayOutputStream.write(this.e.getBytes());
|
|
InterfaceC15580gug c15333gni = new C15333gni();
|
|
c15333gni.b(byteArrayOutputStream, str);
|
|
for (String str2 : this.a.keySet()) {
|
|
c15333gni.e(str2, (String) this.a.get(str2));
|
|
}
|
|
c15273gmG.a(c15333gni);
|
|
c15333gni.d();
|
|
byteArrayOutputStream.write(13);
|
|
byteArrayOutputStream.write(10);
|
|
byteArrayOutputStream.flush();
|
|
return byteArrayOutputStream.toByteArray();
|
|
}
|
|
}
|