|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetstream.capture.file.Files
public class Files
Factory methods for working with the jNetStream packet package and individual packets.
| Nested Class Summary | |
|---|---|
static interface |
Files.Factory
Factory interface that actually does all the work. |
| Method Summary | |
|---|---|
static Files.Factory |
getLocal()
|
static Packet |
newPacket(Protocol dlt,
java.nio.ByteBuffer buffer)
Create a new packet with user supplied buffer. |
static Packet |
newPacket(Protocol dlt,
int length)
Creates a new packet with internally allocated buffer specified length. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Files.Factory getLocal()
public static 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
public static 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 | ||||||||