org.apache.directory.shared.asn1.der
Class ASN1InputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by org.apache.directory.shared.asn1.der.ASN1InputStream
All Implemented Interfaces:
java.io.Closeable

public class ASN1InputStream
extends java.io.FilterInputStream

General purpose ASN.1 decoder.


Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
ASN1InputStream(byte[] input)
           
ASN1InputStream(java.nio.ByteBuffer in)
           
 
Method Summary
protected  DEREncodable buildObject(int tag, byte[] bytes)
          Build an object given its tag and a byte stream.
protected  void readFully(byte[] bytes)
           
protected  int readLength()
           
 DEREncodable 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(java.nio.ByteBuffer in)

ASN1InputStream

public ASN1InputStream(byte[] input)
Method Detail

readLength

protected int readLength()
                  throws java.io.IOException
Throws:
java.io.IOException

readFully

protected void readFully(byte[] bytes)
                  throws java.io.IOException
Throws:
java.io.IOException

buildObject

protected DEREncodable buildObject(int tag,
                                   byte[] bytes)
                            throws java.io.IOException
Build an object given its tag and a byte stream.

Throws:
java.io.IOException

readObject

public DEREncodable readObject()
                        throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2004-2009. All Rights Reserved.