|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Files.Factory
Factory interface that actually does all the work.
| Method Summary | |
|---|---|
Packet |
newPacket(Protocol dlt,
java.nio.ByteBuffer buffer)
Create a new packet with user supplied buffer. |
Packet |
newPacket(Protocol dlt,
int length)
Creates a new packet with internally allocated buffer specified length. |
| Method Detail |
|---|
Packet newPacket(Protocol dlt,
int length)
Packet.getBuffer()
method call. The packet included length will be set to the length of the
buffer. The buffer can be later resized but may invalidate any buffer
references returned prior to the resize call.
length - length of the backing buffer for this packetdlt - data-link-type, first protocol in the packet
Packet newPacket(Protocol dlt,
java.nio.ByteBuffer buffer)
position and limit determine the
boundaries for the packet data.
buffer - user supplied buffer to hold the packet contentsdlt - data-link-type, first protocol in the packet
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||