public class Asn1BerMessageDumpHandler extends java.lang.Object implements Asn1TaggedEventHandler
Constructor and Description |
---|
Asn1BerMessageDumpHandler(java.io.PrintStream out)
The constructor sets the PrintStream object to which the
formatted output should be written.
|
Modifier and Type | Method and Description |
---|---|
void |
contents(byte[] data)
This method is invoked after each contents field is parsed.
|
void |
endElement(Asn1Tag tag)
This method is invoked after parsing is complete on each
tag/length/value (TLV) in the message.
|
void |
startElement(Asn1Tag tag,
int len,
byte[] tagLenBytes)
This method is invoked after each tag/length value is parsed in
the message being dumped.
|
public Asn1BerMessageDumpHandler(java.io.PrintStream out)
out
- Output stream for formatted datapublic void startElement(Asn1Tag tag, int len, byte[] tagLenBytes)
startElement
in interface Asn1TaggedEventHandler
tag
- Parsed tag valuelen
- Parsed length valuetagLenBytes
- Array containing the encoded tag/length bytespublic void contents(byte[] data)
contents
in interface Asn1TaggedEventHandler
data
- Array containing the encoded contents bytespublic void endElement(Asn1Tag tag)
endElement
in interface Asn1TaggedEventHandler
tag
- Parsed tag (not used)