|
SourceForge Jpcap | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JWinPcap.SamplingMethod>
net.sourceforge.jpcap.capture.JWinPcap.SamplingMethod
public static enum JWinPcap.SamplingMethod
Sampling method for use with setSamplingMethod()
.
JWinPcap.setSamplingMethod(net.sourceforge.jpcap.capture.JWinPcap.SamplingMethod, int)
Enum Constant Summary | |
---|---|
FirstAfterNms
Sample the first packet to arrive after every N milliseconds, where N is given by the value supplied to JWinPcap.setSamplingMethod(net.sourceforge.jpcap.capture.JWinPcap.SamplingMethod, int) . |
|
None
No sampling. |
|
OneEveryN
Sample one packet after every N packets, where N is given by the value supplied to JWinPcap.setSamplingMethod(net.sourceforge.jpcap.capture.JWinPcap.SamplingMethod, int) . |
Method Summary | |
---|---|
static JWinPcap.SamplingMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static JWinPcap.SamplingMethod[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JWinPcap.SamplingMethod None
public static final JWinPcap.SamplingMethod OneEveryN
JWinPcap.setSamplingMethod(net.sourceforge.jpcap.capture.JWinPcap.SamplingMethod, int)
.
public static final JWinPcap.SamplingMethod FirstAfterNms
JWinPcap.setSamplingMethod(net.sourceforge.jpcap.capture.JWinPcap.SamplingMethod, int)
.
Method Detail |
---|
public static final JWinPcap.SamplingMethod[] values()
for(JWinPcap.SamplingMethod c : JWinPcap.SamplingMethod.values()) System.out.println(c);
public static JWinPcap.SamplingMethod valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
|
Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |