net.named_data.jndn.lp
public class LpPacket extends Object
Constructor and Description |
---|
LpPacket() |
Modifier and Type | Method and Description |
---|---|
void |
addHeaderField(Object headerField)
Add a header field.
|
void |
clear()
Remove all header fields and set the fragment to an isNull Blob.
|
int |
countHeaderFields()
Get the number of header fields.
|
Blob |
getFragmentWireEncoding()
Get the fragment wire encoding.
|
Object |
getHeaderField(int index)
Get the header field at the given index.
|
void |
setFragmentWireEncoding(Blob fragmentWireEncoding)
Set the fragment wire encoding.
|
public Blob getFragmentWireEncoding()
public int countHeaderFields()
public Object getHeaderField(int index)
index
- The index, starting from 0. It is an error if index is greater
to or equal to countHeaderFields().public void clear()
public void setFragmentWireEncoding(Blob fragmentWireEncoding)
fragmentWireEncoding
- The fragment wire encoding or an isNull Blob
if not specified.public void addHeaderField(Object headerField)
headerField
- The header field to add.Copyright © 2016. All rights reserved.