what-the-bank/sources/okhttp3/repackaged/internal/a.java

59 lines
1.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
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);
}
}
}