|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<FileOptions.FileProperty>
org.jnetstream.capture.file.FileOptions.FileProperty
public static enum FileOptions.FileProperty
Various properties that can be applied to capture files.
| Enum Constant Summary | |
|---|---|
SharedPacketMode
This will cause a shared FilePacket to be returned by the call to IOIterator.next() and initialized as if this was a new packet. |
|
SimulationMode
Test/simulation mode. |
|
| Method Summary | |
|---|---|
static FileOptions.FileProperty |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static FileOptions.FileProperty[] |
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 FileOptions.FileProperty SharedPacketMode
IOIterator.next() and initialized as if this was a new packet.
This is a more efficient way of iterating throught the capture file,
but no new packet instances are created, the same packet instance is
reused for each iteration and simply reinitialized. The use of
SharedPacketModel avoids creation of the CapturePacket and thus
saving few nanoseconds of the runtime allowing greater performance from
the Capture framework (upto several million packets per second.) At
these speeds even creation of a single Object has large impact on the
overall performance.
public static final FileOptions.FileProperty SimulationMode
Capture#hasNext and
Capture#next methods will continue to simulate using the cached buffer.
The DeprecatedPacketIterator API should not be used as this will have unspecified effects on the file
and may cause unexpected exceptions to be thrown.
| Method Detail |
|---|
public static final FileOptions.FileProperty[] values()
for(FileOptions.FileProperty c : FileOptions.FileProperty.values())
System.out.println(c);
public static FileOptions.FileProperty valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||