what-the-bank/sources/org/bouncycastle/asn1/LimitedInputStream.java

30 lines
922 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package org.bouncycastle.asn1;
import java.io.InputStream;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes6.dex */
public abstract class LimitedInputStream extends InputStream {
protected final InputStream _in;
private int _limit;
/* JADX INFO: Access modifiers changed from: protected */
public void setParentEofDetect(boolean z) {
InputStream inputStream = this._in;
if (inputStream instanceof IndefiniteLengthInputStream) {
((IndefiniteLengthInputStream) inputStream).setEofOn00(z);
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public int getRemaining() {
return this._limit;
}
/* JADX INFO: Access modifiers changed from: package-private */
public LimitedInputStream(InputStream inputStream, int i) {
this._in = inputStream;
this._limit = i;
}
}