jnetpcap.capture.file.nap
Enum NAPType

java.lang.Object
  extended by java.lang.Enum<NAPType>
      extended by jnetpcap.capture.file.nap.NAPType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NAPType>, Record.RecordType

public enum NAPType
extends java.lang.Enum<NAPType>
implements Record.RecordType

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
 
Nested classes/interfaces inherited from interface jnetpcap.capture.file.Record.RecordType
Record.RecordType.CommonRecordType
 
Enum Constant Summary
BlockRecord
           
MetaRecord
           
NoOpRecord
           
PacketRecord
           
Vendor
           
 
Method Summary
 java.lang.String getDescription()
          Short description of this type of record.
 java.net.URI getSpec()
          Returns the URI to formal specification for this record type.
 int getType()
           
static NAPType valueOf(int type)
           
static NAPType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NAPType[] 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

BlockRecord

public static final NAPType BlockRecord

NoOpRecord

public static final NAPType NoOpRecord

MetaRecord

public static final NAPType MetaRecord

PacketRecord

public static final NAPType PacketRecord

Vendor

public static final NAPType Vendor
Method Detail

values

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

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

valueOf

public static NAPType 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

getDescription

public java.lang.String getDescription()
Description copied from interface: Record.RecordType
Short description of this type of record. The description is implementation specific.

Specified by:
getDescription in interface Record.RecordType
Returns:
short description

getSpec

public java.net.URI getSpec()
Description copied from interface: Record.RecordType
Returns the URI to formal specification for this record type. Some records may be vendor specific and each vendor supply a valid URI to the formal specification for this type of record.

Specified by:
getSpec in interface Record.RecordType
Returns:
Returns the spec.

getType

public int getType()
Returns:
Returns the type.

valueOf

public static NAPType valueOf(int type)