org.jnetpcap.packet.annotate
Enum HeaderLength.Type

java.lang.Object
  extended by java.lang.Enum<HeaderLength.Type>
      extended by org.jnetpcap.packet.annotate.HeaderLength.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HeaderLength.Type>
Enclosing class:
HeaderLength

public static enum HeaderLength.Type
extends java.lang.Enum<HeaderLength.Type>

Table with constants for each type of get length methods supported.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
GAP
          Method returns the length of the gap that is in between the header and the payload.
HEADER
          Method returns length of the header.
PAYLOAD
          Method returns the length of payload that follows the header and the gap.
POSTFIX
          Method returns the length of the postfix that follows the payload.
PREFIX
          Method returns length of the prefix that is infront of the header.
 
Method Summary
static HeaderLength.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static HeaderLength.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PREFIX

public static final HeaderLength.Type PREFIX
Method returns length of the prefix that is infront of the header.


HEADER

public static final HeaderLength.Type HEADER
Method returns length of the header.


GAP

public static final HeaderLength.Type GAP
Method returns the length of the gap that is in between the header and the payload.


PAYLOAD

public static final HeaderLength.Type PAYLOAD
Method returns the length of payload that follows the header and the gap.


POSTFIX

public static final HeaderLength.Type POSTFIX
Method returns the length of the postfix that follows the payload.

Method Detail

values

public static HeaderLength.Type[] 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 (HeaderLength.Type c : HeaderLength.Type.values())
    System.out.println(c);

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

valueOf

public static HeaderLength.Type 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
java.lang.NullPointerException - if the argument is null