com.lowagie.bc.asn1
Class ASN1InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by com.lowagie.bc.asn1.DERInputStream
              extended by com.lowagie.bc.asn1.ASN1InputStream
All Implemented Interfaces:
DERTags, Closeable

public class ASN1InputStream
extends DERInputStream

a general purpose ASN.1 decoder - note: this class differs from the others in that it returns null after it has read the last object in the stream. If an ASN.1 NULL is encountered a DER/BER Null object is returned.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Fields inherited from interface com.lowagie.bc.asn1.DERTags
APPLICATION, BIT_STRING, BMP_STRING, BOOLEAN, CONSTRUCTED, ENUMERATED, EXTERNAL, GENERAL_STRING, GENERALIZED_TIME, GRAPHIC_STRING, IA5_STRING, INTEGER, NULL, NUMERIC_STRING, OBJECT_IDENTIFIER, OCTET_STRING, PRINTABLE_STRING, SEQUENCE, SEQUENCE_OF, SET, SET_OF, T61_STRING, TAGGED, UNIVERSAL_STRING, UTC_TIME, UTF8_STRING, VIDEOTEX_STRING, VISIBLE_STRING
 
Constructor Summary
ASN1InputStream(InputStream is)
           
 
Method Summary
protected  DERObject buildObject(int tag, byte[] bytes)
          build an object given its tag and a byte stream to construct it from.
protected  void readFully(byte[] bytes)
           
protected  int readLength()
           
 DERObject readObject()
           
 
Methods inherited from class java.io.FilterInputStream
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
 

Constructor Detail

ASN1InputStream

public ASN1InputStream(InputStream is)
Method Detail

readLength

protected int readLength()
                  throws IOException
Overrides:
readLength in class DERInputStream
Throws:
IOException

readFully

protected void readFully(byte[] bytes)
                  throws IOException
Overrides:
readFully in class DERInputStream
Throws:
IOException

buildObject

protected DERObject buildObject(int tag,
                                byte[] bytes)
                         throws IOException
build an object given its tag and a byte stream to construct it from.

Overrides:
buildObject in class DERInputStream
Throws:
IOException

readObject

public DERObject readObject()
                     throws IOException
Overrides:
readObject in class DERInputStream
Throws:
IOException


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.