FileDocCategorySizeDatePackage
DefiniteLengthInputStream.javaAPI DocBouncy Castle Crypto API 1.41 (Java 1.5)603Wed Oct 01 10:55:30 BST 2008org.bouncycastle.sasn1

DefiniteLengthInputStream

public class DefiniteLengthInputStream extends LimitedInputStream

Fields Summary
private int
_length
Constructors Summary
DefiniteLengthInputStream(InputStream in, int length)

        super(in);
        
        this._length = length;
    
Methods Summary
public intread()

        if (_length-- > 0)
        {
            return _in.read();
        }
        else
        {
            setParentEofDetect(true);
            
            return -1;
        }