- All Implemented Interfaces:
Serializable,Comparable<PcapType>,Constable
The type of pcap handle that is open by an instance of pcap-pro. Provides
several boolean getter methods for positive and negative (opposite) checks on
specific pcap types for ease of use in lambda expressions.
- Author:
- Sly Technologies Inc, repos@slytechs.com
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA dead handle used for BPF filtering and certain packet processor usage.A live capture from a network device.An offline file reader. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDead()Checks if is dead handle.booleanisLive()Checks if is live capture.booleanChecks if is not dead handle.booleanChecks if is not live capture.booleanChecks if is not offline reader.booleanChecks if is offline reader.static PcapTypeReturns the enum constant of this class with the specified name.static PcapType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
LIVE_CAPTURE
A live capture from a network device. -
OFFLINE_READER
An offline file reader. -
DEAD_HANDLE
A dead handle used for BPF filtering and certain packet processor usage.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isDead
public boolean isDead()Checks if is dead handle.- Returns:
- true, if is dead
-
isLive
public boolean isLive()Checks if is live capture.- Returns:
- true, if is live
-
isNotDead
public boolean isNotDead()Checks if is not dead handle.- Returns:
- true, if is not dead
-
isNotLive
public boolean isNotLive()Checks if is not live capture.- Returns:
- true, if is not live
-
isNotOffline
public boolean isNotOffline()Checks if is not offline reader.- Returns:
- true, if is not offline
-
isOffline
public boolean isOffline()Checks if is offline reader.- Returns:
- true, if is offline
-