|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<DataEncapsulation>
jnetpcap.capture.DataEncapsulation
public enum DataEncapsulation
DLT (Data Link Type) specifies the type of data link protocol that encapsulates the packet data. This is the first protocol that needs to be decoded in the packet buffer as with the call CapturePacket.getDataBuffer(). The datalink protocol attached is typically supplied by the network interface that captured the packet although other types exist where the first protocol does not actually map to a Data Link at all. For example when a user strips off the original DLT or a driver used some kind custom encapsulating structure around the packet data.
| Method Summary | |
|---|---|
java.lang.String |
getDescription()
|
int |
translateTo(FileType type)
Translates the standard DLT value into a native DLT integer value for the file type specified. |
static DataEncapsulation |
valueOf(FileType type,
int nativeDLT)
Translates a an integer value that represents a data link or encapsulation protocol number that is specific for each file type into standard Capture framework DLT enum entry. |
static DataEncapsulation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static DataEncapsulation[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final DataEncapsulation NULL_BSD
public static final DataEncapsulation EN10MB
public static final DataEncapsulation IEEE802
public static final DataEncapsulation ARCNET
public static final DataEncapsulation SLIP
public static final DataEncapsulation PPP
public static final DataEncapsulation FDDI
public static final DataEncapsulation ATM_RFC1483
public static final DataEncapsulation RAW
public static final DataEncapsulation PPP_SERIAL
public static final DataEncapsulation PPP_ETHER
public static final DataEncapsulation C_HDLC
public static final DataEncapsulation IEEE802_11
public static final DataEncapsulation FRELAY
public static final DataEncapsulation LOOP
public static final DataEncapsulation LINUX_SLL
public static final DataEncapsulation LTALK
public static final DataEncapsulation PFLOG
public static final DataEncapsulation PRISM_HEADER
public static final DataEncapsulation IP_OVER_FC
public static final DataEncapsulation SUNATM
public static final DataEncapsulation IEEE802_11_RADIO
public static final DataEncapsulation ARCNET_LINUX
public static final DataEncapsulation LINUX_IRDA
| Method Detail |
|---|
public static final DataEncapsulation[] values()
for(DataEncapsulation c : DataEncapsulation.values())
System.out.println(c);
public static DataEncapsulation 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 java.lang.String getDescription()
public int translateTo(FileType type)
type - file type to convert todlt - dlt value to convert to native
public static DataEncapsulation valueOf(FileType type,
int nativeDLT)
type - file type to convert the supplied nativeDLT integer from into standard DLT enum
entrynativeDLT - the native dlt integer that specifies the encapsulation structure in the file format
that is supplied
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||