net.named_data.jndn
public class LocalControlHeader extends Object
| Constructor and Description |
|---|
LocalControlHeader()
Create a LocalControlHeader where all fields are not specified.
|
LocalControlHeader(LocalControlHeader localControlHeader)
Create a LocalControlHeader with a copy of the fields in localControlHeader.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getIncomingFaceId()
Get the incoming face ID.
|
long |
getNextHopFaceId()
Get the next hop face ID.
|
Blob |
getPayloadWireEncoding() |
void |
setIncomingFaceId(long incomingFaceId)
Set the incoming face ID.
|
void |
setNextHopFaceId(long nextHopFaceId)
Set the next hop face ID.
|
void |
setPayloadWireEncoding(Blob payloadWireEncoding) |
void |
wireDecode(Blob input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this LocalControlHeader.
|
void |
wireDecode(Blob input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this LocalControlHeader.
|
void |
wireDecode(ByteBuffer input)
Decode the input using the default wire format
WireFormat.getDefaultWireFormat() and update this LocalControlHeader.
|
void |
wireDecode(ByteBuffer input,
WireFormat wireFormat)
Decode the input using a particular wire format and update this LocalControlHeader.
|
Blob |
wireEncode()
Encode this LocalControlHeader for the default wire format
WireFormat.getDefaultWireFormat().
|
Blob |
wireEncode(WireFormat wireFormat)
Encode this LocalControlHeader for a particular wire format.
|
public LocalControlHeader()
public LocalControlHeader(LocalControlHeader localControlHeader)
localControlHeader - The LocalControlHeader to copy.public long getIncomingFaceId()
public long getNextHopFaceId()
public Blob getPayloadWireEncoding()
public void setIncomingFaceId(long incomingFaceId)
incomingFaceId - The incoming face ID. If not specified, set to -1.public void setNextHopFaceId(long nextHopFaceId)
nextHopFaceId - The next hop face ID. If not specified, set to -1.public void setPayloadWireEncoding(Blob payloadWireEncoding)
public final Blob wireEncode(WireFormat wireFormat)
wireFormat - A WireFormat object used to encode this LocalControlHeader.public final Blob wireEncode()
public final void wireDecode(ByteBuffer input, WireFormat wireFormat) throws EncodingException
input - The input buffer to decode. This reads from position() to
limit(), but does not change the position.wireFormat - A WireFormat object used to decode the input.EncodingException - For invalid encoding.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.EncodingException - For invalid encoding.public final void wireDecode(Blob input, WireFormat wireFormat) throws EncodingException
input - The input blob to decode.wireFormat - A WireFormat object used to decode the input.EncodingException - For invalid encoding.public final void wireDecode(Blob input) throws EncodingException
input - The input blob to decode.EncodingException - For invalid encoding.Copyright © 2015. All rights reserved.