org.bouncycastle.asn1
Class LimitedInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.bouncycastle.asn1.LimitedInputStream
All Implemented Interfaces:
java.io.Closeable
Direct Known Subclasses:
DefiniteLengthInputStream, IndefiniteLengthInputStream

abstract class LimitedInputStream
extends java.io.InputStream


Field Summary
protected  java.io.InputStream _in
           
 
Constructor Summary
LimitedInputStream(java.io.InputStream in)
           
 
Method Summary
(package private)  java.io.InputStream getUnderlyingStream()
           
protected  void setParentEofDetect(boolean on)
           
(package private)  byte[] toByteArray()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_in

protected final java.io.InputStream _in
Constructor Detail

LimitedInputStream

LimitedInputStream(java.io.InputStream in)
Method Detail

toByteArray

byte[] toByteArray()
             throws java.io.IOException
Throws:
java.io.IOException

getUnderlyingStream

java.io.InputStream getUnderlyingStream()

setParentEofDetect

protected void setParentEofDetect(boolean on)