org.bouncycastle.sasn1

Class Asn1Object

Known Direct Subclasses:
Asn1Null, Asn1TaggedObject, BerOctetString, BerSequence, BerSet, DerObject

public abstract class Asn1Object
extends java.lang.Object

Field Summary

protected int
_baseTag
protected InputStream
_contentStream
protected int
_tagNumber

Constructor Summary

Asn1Object(int baseTag, int tagNumber, InputStream contentStream)

Method Summary

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.

Field Details

_baseTag

protected int _baseTag

_contentStream

protected InputStream _contentStream

_tagNumber

protected int _tagNumber

Constructor Details

Asn1Object

protected Asn1Object(int baseTag,
                     int tagNumber,
                     InputStream contentStream)

Method Details

getRawContentStream

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

getTagNumber

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

isConstructed

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