org.jnetpcap.packet.format
Enum JFormatter.Style

java.lang.Object
  extended by java.lang.Enum<JFormatter.Style>
      extended by org.jnetpcap.packet.format.JFormatter.Style
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<JFormatter.Style>
Enclosing class:
JFormatter

public static enum JFormatter.Style
extends java.lang.Enum<JFormatter.Style>

Various output formatting styles for JField values.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
BOOLEAN
          The BOOLEAN.
BYTE_ARRAY_ARRAY_IP4_ADDRESS
          The BYT e_ arra y_ arra y_ i p4_ address.
BYTE_ARRAY_COLON_ADDRESS
          The BYT e_ arra y_ colo n_ address.
BYTE_ARRAY_DASH_ADDRESS
          The BYT e_ arra y_ das h_ address.
BYTE_ARRAY_DOT_ADDRESS
          The BYT e_ arra y_ do t_ address.
BYTE_ARRAY_HEX_DUMP
          The BYT e_ arra y_ he x_ dump.
BYTE_ARRAY_HEX_DUMP_ADDRESS
          The BYT e_ arra y_ he x_ dum p_ address.
BYTE_ARRAY_HEX_DUMP_NO_ADDRESS
          The BYT e_ arra y_ he x_ dum p_ n o_ address.
BYTE_ARRAY_HEX_DUMP_NO_TEXT
          The BYT e_ arra y_ he x_ dum p_ n o_ text.
BYTE_ARRAY_HEX_DUMP_NO_TEXT_ADDRESS
          The BYT e_ arra y_ he x_ dum p_ n o_ tex t_ address.
BYTE_ARRAY_HEX_DUMP_TEXT
          The BYT e_ arra y_ he x_ dum p_ text.
BYTE_ARRAY_IP4_ADDRESS
          The BYT e_ arra y_ i p4_ address.
BYTE_ARRAY_IP6_ADDRESS
          The BYT e_ arra y_ i p6_ address.
INT_BIN
          The IN t_ bin.
INT_BITS
          The IN t_ bits.
INT_DEC
          The IN t_ dec.
INT_HEX
          Integer is converted to a hex with a preceding 0x in front.
INT_OCT
          The IN t_ oct.
INT_RADIX_10
          The IN t_ radi x_10.
INT_RADIX_16
          Integer is convert to a hex without a preceding 0x in front.
INT_RADIX_2
          The IN t_ radi x_2.
INT_RADIX_8
          The IN t_ radi x_8.
LONG_DEC
          The LON g_ dec.
LONG_HEX
          The LON g_ hex.
STRING
          The STRING.
STRING_ARRAY
          The STRIN g_ array.
STRING_TEXT_DUMP
          The STRIN g_ tex t_ dump.
 
Method Summary
static JFormatter.Style valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static JFormatter.Style[] 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

BYTE_ARRAY_ARRAY_IP4_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_ARRAY_IP4_ADDRESS
The BYT e_ arra y_ arra y_ i p4_ address.


BYTE_ARRAY_COLON_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_COLON_ADDRESS
The BYT e_ arra y_ colo n_ address.


BYTE_ARRAY_DASH_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_DASH_ADDRESS
The BYT e_ arra y_ das h_ address.


BYTE_ARRAY_DOT_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_DOT_ADDRESS
The BYT e_ arra y_ do t_ address.


BYTE_ARRAY_HEX_DUMP

public static final JFormatter.Style BYTE_ARRAY_HEX_DUMP
The BYT e_ arra y_ he x_ dump.


BYTE_ARRAY_HEX_DUMP_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_HEX_DUMP_ADDRESS
The BYT e_ arra y_ he x_ dum p_ address.


BYTE_ARRAY_HEX_DUMP_NO_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_HEX_DUMP_NO_ADDRESS
The BYT e_ arra y_ he x_ dum p_ n o_ address.


BYTE_ARRAY_HEX_DUMP_NO_TEXT

public static final JFormatter.Style BYTE_ARRAY_HEX_DUMP_NO_TEXT
The BYT e_ arra y_ he x_ dum p_ n o_ text.


BYTE_ARRAY_HEX_DUMP_NO_TEXT_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_HEX_DUMP_NO_TEXT_ADDRESS
The BYT e_ arra y_ he x_ dum p_ n o_ tex t_ address.


BYTE_ARRAY_HEX_DUMP_TEXT

public static final JFormatter.Style BYTE_ARRAY_HEX_DUMP_TEXT
The BYT e_ arra y_ he x_ dum p_ text.


BYTE_ARRAY_IP4_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_IP4_ADDRESS
The BYT e_ arra y_ i p4_ address.


BYTE_ARRAY_IP6_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_IP6_ADDRESS
The BYT e_ arra y_ i p6_ address.


INT_BIN

public static final JFormatter.Style INT_BIN
The IN t_ bin.


INT_BITS

public static final JFormatter.Style INT_BITS
The IN t_ bits.


INT_DEC

public static final JFormatter.Style INT_DEC
The IN t_ dec.


INT_HEX

public static final JFormatter.Style INT_HEX
Integer is converted to a hex with a preceding 0x in front.


INT_OCT

public static final JFormatter.Style INT_OCT
The IN t_ oct.


INT_RADIX_10

public static final JFormatter.Style INT_RADIX_10
The IN t_ radi x_10.


INT_RADIX_16

public static final JFormatter.Style INT_RADIX_16
Integer is convert to a hex without a preceding 0x in front.


INT_RADIX_2

public static final JFormatter.Style INT_RADIX_2
The IN t_ radi x_2.


INT_RADIX_8

public static final JFormatter.Style INT_RADIX_8
The IN t_ radi x_8.


LONG_DEC

public static final JFormatter.Style LONG_DEC
The LON g_ dec.


LONG_HEX

public static final JFormatter.Style LONG_HEX
The LON g_ hex.


STRING

public static final JFormatter.Style STRING
The STRING.


STRING_TEXT_DUMP

public static final JFormatter.Style STRING_TEXT_DUMP
The STRIN g_ tex t_ dump.


BOOLEAN

public static final JFormatter.Style BOOLEAN
The BOOLEAN.


STRING_ARRAY

public static final JFormatter.Style STRING_ARRAY
The STRIN g_ array.

Method Detail

values

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

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

valueOf

public static JFormatter.Style 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