|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Asn1TaggedEventHandler
This interface defines the methods that must be implemented to define a SAX-like event handler. These methods are invoked from within the generated Java decode logic when significant events occur during the parsing of an ASN.1 message.
A tagged event handler differs from a named event handler in that it returns the tags from within a BER or DER message instead of the symbolic names. This type of handler can be used to generically parse a message without knowledge of the associated ASN.1 schema definition. It is used in conjunction with the Asn1BerDecodeBuffer parse method.
Method Summary | |
---|---|
void |
contents(byte[] data)
The contents callback method is invoked when the contents of a primitive data element are parsed. |
void |
endElement(Asn1Tag tag)
The endElement callback method is invoked when the end of a tagged element is parsed. |
void |
startElement(Asn1Tag tag,
int len,
byte[] tagLenBytes)
The startElement callback method is invoked when the start of any tagged element is parsed. |
Method Detail |
---|
void startElement(Asn1Tag tag, int len, byte[] tagLenBytes)
tag
- Parsed tag value.len
- Parsed length valuetagLenBytes
- Array containing the encoded bytes that make
up the tag/length sequence.void endElement(Asn1Tag tag)
tag
- Parsed tag value.void contents(byte[] data)
data
- Array containing encoded contents bytes.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |