|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.objsys.asn1j.runtime.Asn1BerDecodeContext
This class is mainly for internal use by the compiler to keep track of where nested constructed elements (SEQUENCE, SET, CHOICE, etc.) begin and end.
| Field Summary | |
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 indictaes if explicit tagging is in effect for this element. |
protected Asn1Tag |
mTagHolder
This variable holds the current parsed tag for matching operations. |
| Constructor Summary | |
Asn1BerDecodeContext(Asn1BerDecodeBuffer decodeBuffer,
int elemLength)
The constructor initializes all internal working varaibles. |
|
| Method Summary | |
boolean |
expired()
This method will determine if a decoding context is expired. |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Asn1BerDecodeBuffer mDecodeBuffer
protected int mDecBufByteCount
protected int mElemLength
protected boolean mExplicitTagging
protected Asn1Tag mTagHolder
| Constructor Detail |
public Asn1BerDecodeContext(Asn1BerDecodeBuffer decodeBuffer,
int elemLength)
decodeBuffer - Reference to current decode buffer method.elemLength - Length of the element being tracked.| Method Detail |
public boolean expired()
throws Asn1Exception,
java.io.IOException
Asn1Exception
java.io.IOException
public 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 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||