org.bouncycastle.asn1
Class DefiniteLengthInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.bouncycastle.asn1.LimitedInputStream
          extended by org.bouncycastle.asn1.DefiniteLengthInputStream
All Implemented Interfaces:
java.io.Closeable

 class DefiniteLengthInputStream
extends LimitedInputStream


Field Summary
private  int _length
           
 
Fields inherited from class org.bouncycastle.asn1.LimitedInputStream
_in
 
Constructor Summary
DefiniteLengthInputStream(java.io.InputStream in, int length)
           
 
Method Summary
 int read()
           
 
Methods inherited from class org.bouncycastle.asn1.LimitedInputStream
getUnderlyingStream, setParentEofDetect, toByteArray
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_length

private int _length
Constructor Detail

DefiniteLengthInputStream

DefiniteLengthInputStream(java.io.InputStream in,
                          int length)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException