|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<PcapDLT>
org.jnetstream.capture.file.pcap.PcapDLT
public enum PcapDLT
Pcap data link type that specified the type of the first protocol found within the packet's content buffer.
| Enum Constant Summary | |
|---|---|
EN10
|
|
| Method Summary | |
|---|---|
static Protocol |
asConst(long rawLinkType)
|
static PcapDLT |
asPcap(Protocol p)
Converts a jNS protocol constant into a PcapDLT specific value |
Protocol |
asProtocol()
Returns the mapped jNS protocol constant for this PcapDLT |
long |
intValue()
Returns the integer representation of this DLT |
static PcapDLT |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PcapDLT[] |
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 PcapDLT EN10
| Method Detail |
|---|
public static final PcapDLT[] values()
for(PcapDLT c : PcapDLT.values())
System.out.println(c);
public static PcapDLT 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 namepublic long intValue()
public Protocol asProtocol()
public static PcapDLT asPcap(Protocol p)
p - jNS protocol constant
public static Protocol asConst(long rawLinkType)
rawLinkType -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||