public static interface BERTool.DumpBuilder
BERTool.dumpTLV(ByteBuffer, DumpBuilder)
BER parser.
Note: The ByteBuffer
object that is passed to a
method of the DumpBuilder
is invalidated after the method
returns to the caller. If the implementation needs to use the object between
calls, it must obtain and save its copy using the duplicate()
method of the ByteBuffer
.
Modifier and Type | Method and Description |
---|---|
void |
begin_dump()
Invoked when a BER encoding processing starts, before any
other method invocations.
|
void |
content(java.nio.ByteBuffer data)
Invoked when primitive contents octets are parsed.
|
void |
end_constructed()
Invoked when a constructed encoding ends.
|
void |
end_dump()
Invoked when a BER encoding processing ends, before returning
control to the caller.
|
void |
eoc(java.nio.ByteBuffer data)
Invoked when END-OF-CONTENTS octets are detected.
|
void |
error(java.nio.ByteBuffer data,
java.lang.String message)
Invoked when an error occurs.
|
void |
length(java.nio.ByteBuffer data,
int length)
Invoked when a length is parsed.
|
void |
skip(java.nio.ByteBuffer data)
Invoked when a misencoded value is skipped.
|
void |
tag(java.nio.ByteBuffer data,
BERTool.Tag tag)
Invoked when a tag is parsed.
|
void begin_dump()
void end_dump()
void tag(java.nio.ByteBuffer data, BERTool.Tag tag)
data
- the ByteBuffer
object that contains BER bytes
that represent a tag encoding. The encoding is
delimited by the position
and limit
properties of the ByteBuffer
.tag
- the decoded tag.void length(java.nio.ByteBuffer data, int length)
data
- the ByteBuffer
object that contains BER bytes
that represent a length encoding. The encoding is
delimited by the position
and limit
properties of the ByteBuffer
.length
- the decoded length or -1 for indefinite length encodings.void eoc(java.nio.ByteBuffer data)
data
- the ByteBuffer
object that contains BER bytes
that represent the EOC. The EOC bytes are
delimited by the position
and limit
properties of the ByteBuffer
.void content(java.nio.ByteBuffer data)
data
- the ByteBuffer
object that contains BER bytes
that represent primitive content octets. The primitive
contents octets are delimited by the position
and
limit
properties of the ByteBuffer
.void skip(java.nio.ByteBuffer data)
data
- the ByteBuffer
object that contains BER bytes
that are skipped. The bytes are delimited by the
position
and limit
properties of
the ByteBuffer
.void error(java.nio.ByteBuffer data, java.lang.String message)
data
- the ByteBuffer
object that contains erroneous
BER data. The position
property specifies
the position of the error in the encoded data.message
- the error message.void end_constructed()
Copyright © 2020 OSS Nokalva, Inc. All rights reserved.
This document is proprietary to OSS Nokalva, Inc., and may be used only by their direct licensees. Distribution is not permitted. This copyright statement must not be removed.