76 lines
2.6 KiB
Java
76 lines
2.6 KiB
Java
|
package o;
|
||
|
|
||
|
import java.io.File;
|
||
|
import java.io.FileInputStream;
|
||
|
import java.io.FileNotFoundException;
|
||
|
import java.io.FileOutputStream;
|
||
|
import java.io.IOException;
|
||
|
import java.io.InputStream;
|
||
|
import java.io.OutputStream;
|
||
|
import java.net.Socket;
|
||
|
import java.util.logging.Logger;
|
||
|
|
||
|
/* renamed from: o.gis */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final /* synthetic */ class C15164gis {
|
||
|
private static final Logger d = Logger.getLogger("o.gio");
|
||
|
|
||
|
public static final InterfaceC15168giw e(OutputStream outputStream) {
|
||
|
C14957gcv.e(outputStream, "");
|
||
|
return new C15167giv(outputStream, new C15139giB());
|
||
|
}
|
||
|
|
||
|
public static final giD e(InputStream inputStream) {
|
||
|
C14957gcv.e(inputStream, "");
|
||
|
return new C15156gik(inputStream, new C15139giB());
|
||
|
}
|
||
|
|
||
|
public static final InterfaceC15168giw d(Socket socket) throws IOException {
|
||
|
C14957gcv.e(socket, "");
|
||
|
giF gif = new giF(socket);
|
||
|
OutputStream outputStream = socket.getOutputStream();
|
||
|
C14957gcv.c(outputStream, "");
|
||
|
return gif.sink(new C15167giv(outputStream, gif));
|
||
|
}
|
||
|
|
||
|
public static final giD b(Socket socket) throws IOException {
|
||
|
C14957gcv.e(socket, "");
|
||
|
giF gif = new giF(socket);
|
||
|
InputStream inputStream = socket.getInputStream();
|
||
|
C14957gcv.c(inputStream, "");
|
||
|
return gif.source(new C15156gik(inputStream, gif));
|
||
|
}
|
||
|
|
||
|
public static final InterfaceC15168giw c(File file, boolean z) throws FileNotFoundException {
|
||
|
C14957gcv.e(file, "");
|
||
|
return C15160gio.c(new FileOutputStream(file, z));
|
||
|
}
|
||
|
|
||
|
public static /* synthetic */ InterfaceC15168giw e(File file) throws FileNotFoundException {
|
||
|
return C15160gio.c(file, false);
|
||
|
}
|
||
|
|
||
|
public static final InterfaceC15168giw d(File file) throws FileNotFoundException {
|
||
|
C14957gcv.e(file, "");
|
||
|
return C15160gio.c(new FileOutputStream(file, true));
|
||
|
}
|
||
|
|
||
|
public static final giD c(File file) throws FileNotFoundException {
|
||
|
C14957gcv.e(file, "");
|
||
|
return new C15156gik(new FileInputStream(file), C15139giB.NONE);
|
||
|
}
|
||
|
|
||
|
public static final boolean b(AssertionError assertionError) {
|
||
|
String message;
|
||
|
C14957gcv.e(assertionError, "");
|
||
|
return (assertionError.getCause() == null || (message = assertionError.getMessage()) == null || !gdZ.d((CharSequence) message, (CharSequence) "getsockname failed", false)) ? false : true;
|
||
|
}
|
||
|
|
||
|
public static final InterfaceC15168giw b(File file) throws FileNotFoundException {
|
||
|
InterfaceC15168giw e;
|
||
|
C14957gcv.e(file, "");
|
||
|
e = e(file);
|
||
|
return e;
|
||
|
}
|
||
|
}
|