59 lines
1.2 KiB
Java
59 lines
1.2 KiB
Java
package okhttp3.repackaged.internal;
|
|
|
|
import java.io.IOException;
|
|
import o.giM;
|
|
import o.giQ;
|
|
import o.giX;
|
|
|
|
/* loaded from: classes6.dex */
|
|
class a extends giQ {
|
|
private boolean ajd;
|
|
|
|
protected void onException(IOException iOException) {
|
|
}
|
|
|
|
public a(giX gix) {
|
|
super(gix);
|
|
}
|
|
|
|
@Override // o.giQ, o.giX
|
|
public void write(giM gim, long j) throws IOException {
|
|
if (this.ajd) {
|
|
gim.f(j);
|
|
return;
|
|
}
|
|
try {
|
|
super.write(gim, j);
|
|
} catch (IOException e) {
|
|
this.ajd = true;
|
|
onException(e);
|
|
}
|
|
}
|
|
|
|
@Override // o.giQ, o.giX, java.io.Flushable
|
|
public void flush() throws IOException {
|
|
if (this.ajd) {
|
|
return;
|
|
}
|
|
try {
|
|
super.flush();
|
|
} catch (IOException e) {
|
|
this.ajd = true;
|
|
onException(e);
|
|
}
|
|
}
|
|
|
|
@Override // o.giQ, o.giX, java.io.Closeable, java.lang.AutoCloseable
|
|
public void close() throws IOException {
|
|
if (this.ajd) {
|
|
return;
|
|
}
|
|
try {
|
|
super.close();
|
|
} catch (IOException e) {
|
|
this.ajd = true;
|
|
onException(e);
|
|
}
|
|
}
|
|
}
|