Bouncy Castle Cryptography 1.30

org.bouncycastle.sasn1
Class Asn1Object

java.lang.Object
  extended by org.bouncycastle.sasn1.Asn1Object
Direct Known Subclasses:
Asn1Null, Asn1TaggedObject, BerOctetString, BerSequence, BerSet, DerObject

public abstract class Asn1Object
extends java.lang.Object


Field Summary
protected  int _baseTag
           
protected  java.io.InputStream _contentStream
           
protected  int _tagNumber
           
 
Constructor Summary
protected Asn1Object(int baseTag, int tagNumber, java.io.InputStream contentStream)
           
 
Method Summary
 java.io.InputStream getRawContentStream()
          Return an input stream representing the content bytes of the object.
 int getTagNumber()
          Return the tag number for this object.
 boolean isConstructed()
          Return true if this object is a constructed one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_baseTag

protected int _baseTag

_tagNumber

protected int _tagNumber

_contentStream

protected java.io.InputStream _contentStream
Constructor Detail

Asn1Object

protected Asn1Object(int baseTag,
                     int tagNumber,
                     java.io.InputStream contentStream)
Method Detail

isConstructed

public boolean isConstructed()
Return true if this object is a constructed one.

Returns:
true if this object is constructed.

getTagNumber

public int getTagNumber()
Return the tag number for this object.

Returns:
the tag number.

getRawContentStream

public java.io.InputStream getRawContentStream()
Return an input stream representing the content bytes of the object.

Returns:
content stream.

Bouncy Castle Cryptography 1.30