org.jnetpcap.util.resolver
Enum Resolver.ResolverType

java.lang.Object
  extended by java.lang.Enum<Resolver.ResolverType>
      extended by org.jnetpcap.util.resolver.Resolver.ResolverType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Resolver.ResolverType>
Enclosing interface:
Resolver

public static enum Resolver.ResolverType
extends java.lang.Enum<Resolver.ResolverType>

Type of resolver that can be registered with JRegistry. Resolvers job is to convert a binary number to a human readable name associated with it. For example IP resolver will convert ip address to hostnames.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Enum Constant Summary
IEEE_OUI_ADDRESS
          Converts MAC addresses to station names when defined
IEEE_OUI_PREFIX
          Converts a MAC address manufacturer prefix to a name
IP
          Converts Ip version 4 and 6 address to hostnames and constant labels
PORT
          Converts TCP and UDP port numbers to application names
 
Method Summary
 Resolver getResolver()
           
static Resolver.ResolverType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Resolver.ResolverType[] 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

IEEE_OUI_ADDRESS

public static final Resolver.ResolverType IEEE_OUI_ADDRESS
Converts MAC addresses to station names when defined


IEEE_OUI_PREFIX

public static final Resolver.ResolverType IEEE_OUI_PREFIX
Converts a MAC address manufacturer prefix to a name


IP

public static final Resolver.ResolverType IP
Converts Ip version 4 and 6 address to hostnames and constant labels


PORT

public static final Resolver.ResolverType PORT
Converts TCP and UDP port numbers to application names

Method Detail

values

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

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

valueOf

public static Resolver.ResolverType 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

getResolver

public final Resolver getResolver()