package t5;

import androidx.annotation.Nullable;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayDeque;

/* JADX INFO: loaded from: classes.dex */
public final class f extends InputStream {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public static final ArrayDeque f32961c;

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public InputStream f32962a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public IOException f32963b;

    static {
        char[] cArr = p.f32977a;
        f32961c = new ArrayDeque(0);
    }

    @Override // java.io.InputStream
    public final int available() {
        return this.f32962a.available();
    }

    @Override // java.io.InputStream, java.io.Closeable, java.lang.AutoCloseable
    public final void close() throws IOException {
        this.f32962a.close();
    }

    @Nullable
    public IOException getException() {
        return this.f32963b;
    }

    @Override // java.io.InputStream
    public final void mark(int i10) {
        this.f32962a.mark(i10);
    }

    @Override // java.io.InputStream
    public final boolean markSupported() {
        return this.f32962a.markSupported();
    }

    @Override // java.io.InputStream
    public final int read() throws IOException {
        try {
            return this.f32962a.read();
        } catch (IOException e10) {
            this.f32963b = e10;
            throw e10;
        }
    }

    @Override // java.io.InputStream
    public final synchronized void reset() {
        this.f32962a.reset();
    }

    @Override // java.io.InputStream
    public final long skip(long j10) throws IOException {
        try {
            return this.f32962a.skip(j10);
        } catch (IOException e10) {
            this.f32963b = e10;
            throw e10;
        }
    }

    @Override // java.io.InputStream
    public final int read(byte[] bArr) throws IOException {
        try {
            return this.f32962a.read(bArr);
        } catch (IOException e10) {
            this.f32963b = e10;
            throw e10;
        }
    }

    @Override // java.io.InputStream
    public final int read(byte[] bArr, int i10, int i11) throws IOException {
        try {
            return this.f32962a.read(bArr, i10, i11);
        } catch (IOException e10) {
            this.f32963b = e10;
            throw e10;
        }
    }
}
