pasn.encoding.ber
Class BERInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
pasn.encoding.ASN1InputStream
pasn.misc.encoding.DefiniteLengthInputStream
pasn.encoding.ber.BERInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class BERInputStream
- extends DefiniteLengthInputStream
- Author:
- ncottin
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)
|
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 |
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
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