|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface JCaptureHeader
Interface to to capture header provided by the capturing library. For example
PcapHeader, the capture header provided by libpcap,
implements this interface which provides access to minimum set of information
about the capture packet.
| Method Summary | |
|---|---|
int |
caplen()
Retrieves the length of the packet that was actually captured. |
void |
caplen(int caplen)
Caplen. |
void |
initFrom(JCaptureHeader captureHeader)
Inits the from. |
long |
nanos()
Fractional part of the second when the packet was captured. |
void |
nanos(long nanos)
Nanos. |
long |
seconds()
Capture timestamp in UNIX seconds. |
void |
seconds(long seconds)
Seconds. |
long |
timestampInMicros()
Gets the absolute capture timestam pin micro seconds (10e-6). |
long |
timestampInMillis()
Converts the timestamp into a java style timestamp suitable for usage with Date class. |
long |
timestampInNanos()
Gets the absolute capture timestamp in nano seconds (10e-9). |
int |
wirelen()
Retrieves the length of the packet before any of it was truncated by the capture mechanism. |
void |
wirelen(int wirelen)
Wirelen. |
| Method Detail |
|---|
int caplen()
wirelen().
int wirelen()
long seconds()
long nanos()
long timestampInMillis()
Date class.
long timestampInNanos()
long timestampInMicros()
void seconds(long seconds)
seconds - the secondsvoid nanos(long nanos)
nanos - the nanosvoid caplen(int caplen)
caplen - the caplenvoid wirelen(int wirelen)
wirelen - the wirelenvoid initFrom(JCaptureHeader captureHeader)
captureHeader - the capture header
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||