Package nl.sidnlabs.pcap
Enum PcapReader.LinkType
- java.lang.Object
-
- java.lang.Enum<PcapReader.LinkType>
-
- nl.sidnlabs.pcap.PcapReader.LinkType
-
- All Implemented Interfaces:
Serializable,Comparable<PcapReader.LinkType>
- Enclosing class:
- PcapReader
protected static enum PcapReader.LinkType extends Enum<PcapReader.LinkType>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PcapReader.LinkTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PcapReader.LinkType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final PcapReader.LinkType NULL
-
EN10MB
public static final PcapReader.LinkType EN10MB
-
RAW
public static final PcapReader.LinkType RAW
-
LOOP
public static final PcapReader.LinkType LOOP
-
LINUX_SLL
public static final PcapReader.LinkType LINUX_SLL
-
-
Method Detail
-
values
public static PcapReader.LinkType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PcapReader.LinkType c : PcapReader.LinkType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PcapReader.LinkType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-