public class PSyncState extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
Tlv_PSyncContent |
| Constructor and Description |
|---|
PSyncState()
Create a PSyncState with empty content.
|
PSyncState(Blob input)
Create a PSyncState by decoding the input as an NDN-TLV PSyncContent.
|
PSyncState(ByteBuffer input)
Create a PSyncState by decoding the input as an NDN-TLV PSyncContent.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContent(Name name)
Append the name to the content.
|
void |
clear()
Remove the content.
|
ArrayList<Name> |
getContent()
Get the sequence of Names in the content.
|
String |
toString()
Get the string representation of this PSyncState.
|
void |
wireDecode(Blob input)
Decode the input as an NDN-TLV PSyncContent and update this object.
|
void |
wireDecode(ByteBuffer input)
Decode the input as an NDN-TLV PSyncContent and update this object.
|
Blob |
wireEncode()
Encode this as an NDN-TLV PSyncContent.
|
public static final int Tlv_PSyncContent
public PSyncState()
public PSyncState(ByteBuffer input) throws EncodingException
input - The input buffer to decode. This reads from position() to
limit(), but does not change the position.EncodingExceptionpublic PSyncState(Blob input) throws EncodingException
input - The input buffer to decode. This reads from position() to
limit(), but does not change the position.EncodingExceptionpublic final void addContent(Name name)
name - The Name to add, which is copied.public final ArrayList<Name> getContent()
public final void clear()
public final Blob wireEncode()
public final void wireDecode(ByteBuffer input) throws EncodingException
input - The input buffer to decode. This reads from position() to
limit(), but does not change the position.EncodingExceptionpublic final void wireDecode(Blob input) throws EncodingException
input - The input buffer to decode. This reads from position() to
limit(), but does not change the position.EncodingExceptionCopyright © 2019. All rights reserved.