pasn.encoding.ber
Class BERInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by pasn.encoding.ASN1InputStream
              extended by pasn.misc.encoding.DefiniteLengthInputStream
                  extended by pasn.encoding.ber.BERInputStream
All Implemented Interfaces:
java.io.Closeable

public class BERInputStream
extends DefiniteLengthInputStream

Author:
ncottin

Field Summary
 
Fields inherited from class pasn.encoding.ASN1InputStream
DELAY_UNIT, NO_DELAY
 
Constructor Summary
BERInputStream(java.io.File src)
           
BERInputStream(java.io.File src, long maxLength)
           
BERInputStream(java.io.InputStream in)
           
BERInputStream(java.io.InputStream in, boolean extraAllowed)
           
BERInputStream(java.io.InputStream in, long maxLength)
           
BERInputStream(java.io.InputStream in, long maxLength, boolean extraAllowed)
           
BERInputStream(java.io.InputStream in, long maxLength, long startIndex, boolean extraAllowed)
           
BERInputStream(java.io.InputStream in, long maxLength, long startIndex, boolean extraAllowed, long delay, long delayUnit)
           
BERInputStream(java.lang.String srcPath)
           
BERInputStream(java.lang.String srcPath, long maxLength)
           
 
Method Summary
 ASN1DecodedObject decode()
           
 ASN1InputStream getInstance(java.io.InputStream in, long length, long startIndex, boolean extraAllowed)
           
 
Methods inherited from class pasn.misc.encoding.DefiniteLengthInputStream
decodeDefiniteLength, getASN1Class, getInstance, getLengthIndex, getValueIndex, isIndefiniteLength, isPrimitive, readLength, readTag, setIndefiniteLength, setLengthIndex, setValueIndex
 
Methods inherited from class pasn.encoding.ASN1InputStream
getDecoder, getDelay, getDelayUnit, getInputStream, getMaxLength, getReadLength, getStartIndex, isDelayed, isExtraAllowed, isLengthConstrained, readByte, readByte, setDelay, setExtraAllowed, setInputStream, setMaxLength
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BERInputStream

public BERInputStream(java.io.InputStream in)
Parameters:
in -

BERInputStream

public BERInputStream(java.io.InputStream in,
                      boolean extraAllowed)

BERInputStream

public BERInputStream(java.io.InputStream in,
                      long maxLength)

BERInputStream

public BERInputStream(java.io.InputStream in,
                      long maxLength,
                      boolean extraAllowed)

BERInputStream

public BERInputStream(java.io.InputStream in,
                      long maxLength,
                      long startIndex,
                      boolean extraAllowed)

BERInputStream

public BERInputStream(java.io.InputStream in,
                      long maxLength,
                      long startIndex,
                      boolean extraAllowed,
                      long delay,
                      long delayUnit)

BERInputStream

public BERInputStream(java.io.File src)
               throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

BERInputStream

public BERInputStream(java.lang.String srcPath)
               throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

BERInputStream

public BERInputStream(java.io.File src,
                      long maxLength)
               throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException

BERInputStream

public BERInputStream(java.lang.String srcPath,
                      long maxLength)
               throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

decode

public ASN1DecodedObject decode()
                         throws java.io.IOException,
                                ASN1DecodingException,
                                EndOfContentFoundException,
                                ASN1SecurityException,
                                ASN1TimerException
Specified by:
decode in class ASN1InputStream
Throws:
java.io.IOException
ASN1DecodingException
EndOfContentFoundException
ASN1SecurityException
ASN1TimerException

getInstance

public final ASN1InputStream getInstance(java.io.InputStream in,
                                         long length,
                                         long startIndex,
                                         boolean extraAllowed)
Specified by:
getInstance in class DefiniteLengthInputStream