30 lines
922 B
Java
30 lines
922 B
Java
|
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;
|
||
|
}
|
||
|
}
|