|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objsys.asn1j.runtime.Asn1BerDecodeContext
public class 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 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 Summary | |
---|---|
Asn1BerDecodeContext(Asn1BerDecodeBuffer decodeBuffer,
int elemLength)
The constructor initializes all internal working varaibles. |
Method Summary | |
---|---|
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. |
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
protected java.util.Vector mTagHistory
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 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |