org.apache.commons.ssl.asn1
Class DefiniteLengthInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.apache.commons.ssl.asn1.LimitedInputStream
          extended byorg.apache.commons.ssl.asn1.DefiniteLengthInputStream

class DefiniteLengthInputStream
extends LimitedInputStream


Field Summary
protected  InputStream _in
           
private  int _length
           
 
Fields inherited from class java.io.InputStream
 
Constructor Summary
(package private) DefiniteLengthInputStream(InputStream in, int length)
           
 
Method Summary
(package private)  InputStream getUnderlyingStream()
           
 int read()
           
 int read(byte[] buf, int off, int len)
           
protected  void setParentEofDetect(boolean on)
           
(package private)  byte[] toByteArray()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, 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

_in

protected final InputStream _in
Constructor Detail

DefiniteLengthInputStream

DefiniteLengthInputStream(InputStream in,
                          int length)
Method Detail

read

public int read()
         throws IOException
Throws:
IOException

read

public int read(byte[] buf,
                int off,
                int len)
         throws IOException
Throws:
IOException

toByteArray

byte[] toByteArray()
             throws IOException
Throws:
IOException

getUnderlyingStream

InputStream getUnderlyingStream()

setParentEofDetect

protected void setParentEofDetect(boolean on)