net.named_data.jndn.encoding.der
public static class DerNode.DerStructure extends DerNode
DerNode.DerBitString, DerNode.DerBoolean, DerNode.DerByteString, DerNode.DerGeneralizedTime, DerNode.DerInteger, DerNode.DerNull, DerNode.DerOctetString, DerNode.DerOid, DerNode.DerPrintableString, DerNode.DerSequence, DerNode.DerStructure
Modifier and Type | Method and Description |
---|---|
void |
addChild(DerNode node) |
void |
addChild(DerNode node,
boolean notifyParent)
Add a child to this node.
|
protected void |
decode(ByteBuffer inputBuf,
int startIdx)
Override the base decode to decode and store the data from an input
buffer.
|
Blob |
encode()
Override the base encode to return raw data encoding for this node and
its children
|
List |
getChildren()
Get the children of this node.
|
int |
getSize()
Get the total length of the encoding, including children.
|
decodeHeader, encodeHeader, getPayload, getSequence, parse, parse, toVal
public int getSize()
public final List getChildren()
getChildren
in class DerNode
public final void addChild(DerNode node, boolean notifyParent)
node
- The child node to add.notifyParent
- Set to true to cause any containing nodes to update
their size.public final void addChild(DerNode node)
public Blob encode()
protected void decode(ByteBuffer inputBuf, int startIdx) throws DerDecodingException
decode
in class DerNode
inputBuf
- The input buffer to read from. This reads from
startIdx (regardless of the buffer's position) and does not change the
position.startIdx
- The offset into the buffer.DerDecodingException
Copyright © 2016. All rights reserved.