public class Asn1BerDecodeContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
mDecBufByteCount
This variable is used to keep track of the current byte count
in the decode buffer.
|
protected Asn1BerDecodeBuffer |
mDecodeBuffer
This variable holds a reference to the BER decode buffer object
that is being used to decode the entire message component.
|
protected int |
mElemLength
This variable holds the contructed element length for the
context component.
|
protected boolean |
mExplicitTagging
This boolean flag variable indicates if explicit tagging is in
effect for this element.
|
protected java.util.Vector |
mTagHistory
The tag history is a list of decoded tags.
|
protected Asn1Tag |
mTagHolder
This variable holds the current parsed tag for matching operations.
|
Constructor and Description |
---|
Asn1BerDecodeContext(Asn1BerDecodeBuffer decodeBuffer,
int elemLength)
The constructor initializes all internal working varaibles.
|
Modifier and Type | Method and Description |
---|---|
void |
addTag(Asn1Tag tag)
This method adds a tag to the history.
|
boolean |
expired()
This method will determine if a decoding context is expired.
|
boolean |
hasDecoded(Asn1Tag tag)
This method checks to see whether a tag has been already decoded.
|
boolean |
matchElemTag(Asn1Tag tag,
IntHolder parsedLen,
boolean advance)
This method will attempt to match the next element tag in
a constructed type with the expected value.
|
boolean |
matchElemTag(short tagClass,
short tagForm,
int tagIDCode,
IntHolder parsedLen,
boolean advance)
This method will attempt to match the next element tag in
a constructed type with the expected value.
|
protected Asn1BerDecodeBuffer mDecodeBuffer
protected int mDecBufByteCount
protected int mElemLength
protected boolean mExplicitTagging
protected Asn1Tag mTagHolder
protected java.util.Vector mTagHistory
public Asn1BerDecodeContext(Asn1BerDecodeBuffer decodeBuffer, int elemLength)
decodeBuffer
- Reference to current decode buffer method.elemLength
- Length of the element being tracked.public final boolean expired() throws Asn1Exception, java.io.IOException
Asn1Exception
java.io.IOException
public final boolean matchElemTag(short tagClass, short tagForm, int tagIDCode, IntHolder parsedLen, boolean advance) throws Asn1Exception, java.io.IOException
tagClass
- Class value of tag to matchtagForm
- Form value of tag to matchtagIDCode
- ID code of tag to matchparsedLen
- Holder object to receive parsed length valueadvance
- True if decode cursor to be advanced.Asn1Exception
java.io.IOException
public final boolean matchElemTag(Asn1Tag tag, IntHolder parsedLen, boolean advance) throws Asn1Exception, java.io.IOException
tag
- Tag object representing tag to be matched.parsedLen
- Holder object to receive parsed length valueadvance
- True if decode cursor to be advanced.Asn1Exception
java.io.IOException
public final void addTag(Asn1Tag tag)
tag
- The tag to be added to the history.public final boolean hasDecoded(Asn1Tag tag)
tag
- The tag to be searched.