|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.asn1.ber.TupleTreeDecoder
Builds a TLV tree from the TLV stream emitted from the decoder. The decoded objects delivered to this StatefulDecoder's DecoderCallback are DefaultMutableTupleNodes.
Field Summary | |
(package private) org.apache.asn1.codec.stateful.DecoderCallback |
cb
the callback to use for this StatefulDecoder |
(package private) BERDecoder |
decoder
the underlying BER data stream to TLV stream decoder |
(package private) org.apache.asn1.codec.stateful.DecoderMonitor |
monitor
the monitor to use for this StatefulDecoder |
(package private) java.util.Stack |
stack
a stack of nested constructed tuples used to track state |
(package private) java.util.ArrayList |
valueChunks
the value chunks buffer collection |
Constructor Summary | |
TupleTreeDecoder()
Creates a simple BER byte stream to TLV Tuple tree decoder. |
Method Summary | |
void |
decode(java.lang.Object encoded)
|
private void |
handleTuple(Tuple t)
Handles a tuple recieved from the underlying BER byte stream decoder. |
void |
setCallback(org.apache.asn1.codec.stateful.DecoderCallback cb)
|
void |
setDecoderMonitor(org.apache.asn1.codec.stateful.DecoderMonitor monitor)
|
static TupleNode |
treeDecode(java.nio.ByteBuffer buf)
Decodes a BER byte buffer into a tree of TLV tuples. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.util.Stack stack
BERDecoder decoder
org.apache.asn1.codec.stateful.DecoderCallback cb
org.apache.asn1.codec.stateful.DecoderMonitor monitor
java.util.ArrayList valueChunks
Constructor Detail |
public TupleTreeDecoder()
Method Detail |
private void handleTuple(Tuple t)
t
- the tuple to handlepublic void decode(java.lang.Object encoded) throws org.apache.asn1.codec.DecoderException
decode
in interface org.apache.asn1.codec.stateful.StatefulDecoder
org.apache.asn1.codec.DecoderException
public static TupleNode treeDecode(java.nio.ByteBuffer buf) throws org.apache.asn1.codec.DecoderException
buf
- the buffer to decode
org.apache.asn1.codec.DecoderException
- if there is a problem decoding the data
java.util.NoSuchElementException
- if there is not enough data
to properly decode a complete TLV treepublic void setCallback(org.apache.asn1.codec.stateful.DecoderCallback cb)
setCallback
in interface org.apache.asn1.codec.stateful.StatefulDecoder
public void setDecoderMonitor(org.apache.asn1.codec.stateful.DecoderMonitor monitor)
setDecoderMonitor
in interface org.apache.asn1.codec.stateful.StatefulDecoder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |