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
           
BYTE_ARRAY_ARRAY_IP4_ADDRESS
           
BYTE_ARRAY_COLON_ADDRESS
           
BYTE_ARRAY_DASH_ADDRESS
           
BYTE_ARRAY_DOT_ADDRESS
           
BYTE_ARRAY_HEX_DUMP
           
BYTE_ARRAY_HEX_DUMP_ADDRESS
           
BYTE_ARRAY_HEX_DUMP_NO_ADDRESS
           
BYTE_ARRAY_HEX_DUMP_NO_TEXT
           
BYTE_ARRAY_HEX_DUMP_NO_TEXT_ADDRESS
           
BYTE_ARRAY_HEX_DUMP_TEXT
           
BYTE_ARRAY_IP4_ADDRESS
           
BYTE_ARRAY_IP6_ADDRESS
           
INT_BIN
           
INT_BITS
           
INT_DEC
           
INT_HEX
          Integer is converted to a hex with a preceding 0x in front
INT_OCT
           
INT_RADIX_10
           
INT_RADIX_16
          Integer is convert to a hex without a preceding 0x in front
INT_RADIX_2
           
INT_RADIX_8
           
LONG_DEC
           
LONG_HEX
           
STRING
           
STRING_TEXT_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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BYTE_ARRAY_ARRAY_IP4_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_ARRAY_IP4_ADDRESS

BYTE_ARRAY_COLON_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_COLON_ADDRESS

BYTE_ARRAY_DASH_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_DASH_ADDRESS

BYTE_ARRAY_DOT_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_DOT_ADDRESS

BYTE_ARRAY_HEX_DUMP

public static final JFormatter.Style BYTE_ARRAY_HEX_DUMP

BYTE_ARRAY_HEX_DUMP_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_HEX_DUMP_ADDRESS

BYTE_ARRAY_HEX_DUMP_NO_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_HEX_DUMP_NO_ADDRESS

BYTE_ARRAY_HEX_DUMP_NO_TEXT

public static final JFormatter.Style BYTE_ARRAY_HEX_DUMP_NO_TEXT

BYTE_ARRAY_HEX_DUMP_NO_TEXT_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_HEX_DUMP_NO_TEXT_ADDRESS

BYTE_ARRAY_HEX_DUMP_TEXT

public static final JFormatter.Style BYTE_ARRAY_HEX_DUMP_TEXT

BYTE_ARRAY_IP4_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_IP4_ADDRESS

BYTE_ARRAY_IP6_ADDRESS

public static final JFormatter.Style BYTE_ARRAY_IP6_ADDRESS

INT_BIN

public static final JFormatter.Style INT_BIN

INT_BITS

public static final JFormatter.Style INT_BITS

INT_DEC

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

INT_RADIX_10

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

INT_RADIX_8

public static final JFormatter.Style INT_RADIX_8

LONG_DEC

public static final JFormatter.Style LONG_DEC

LONG_HEX

public static final JFormatter.Style LONG_HEX

STRING

public static final JFormatter.Style STRING

STRING_TEXT_DUMP

public static final JFormatter.Style STRING_TEXT_DUMP

BOOLEAN

public static final JFormatter.Style BOOLEAN
Method Detail

values

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

Returns:
an array containing the constants of this enum type, in the order they're 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