jnetpcap.capture.file.snoop
Enum SnoopPacketRecord.HDR

java.lang.Object
  extended by java.lang.Enum<SnoopPacketRecord.HDR>
      extended by jnetpcap.capture.file.snoop.SnoopPacketRecord.HDR
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SnoopPacketRecord.HDR>
Enclosing interface:
SnoopPacketRecord

public static enum SnoopPacketRecord.HDR
extends java.lang.Enum<SnoopPacketRecord.HDR>


Enum Constant Summary
Drops
           
IncludedLength
           
Microseconds
           
OriginalLength
           
RecordLength
           
Seconds
           
 
Method Summary
 int getOffset()
           
static SnoopPacketRecord.HDR valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SnoopPacketRecord.HDR[] 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

IncludedLength

public static final SnoopPacketRecord.HDR IncludedLength

OriginalLength

public static final SnoopPacketRecord.HDR OriginalLength

RecordLength

public static final SnoopPacketRecord.HDR RecordLength

Drops

public static final SnoopPacketRecord.HDR Drops

Seconds

public static final SnoopPacketRecord.HDR Seconds

Microseconds

public static final SnoopPacketRecord.HDR Microseconds
Method Detail

values

public static final SnoopPacketRecord.HDR[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SnoopPacketRecord.HDR c : SnoopPacketRecord.HDR.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static SnoopPacketRecord.HDR valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getOffset

public final int getOffset()
Returns:
Returns the offset.