dk.i1.diameter
Enum Message.decode_status

Object
  extended by Enum<Message.decode_status>
      extended by dk.i1.diameter.Message.decode_status
All Implemented Interfaces:
java.io.Serializable, Comparable<Message.decode_status>
Enclosing class:
Message

public static enum Message.decode_status
extends Enum<Message.decode_status>

The decode status from Message.decode(byte[])


Enum Constant Summary
decoded
          A complete Diameter message was successfully decoded
garbage
          The buffer cannot possibly contain a Diameter message
not_enough
          The buffer appears so far to contain a valid message byte there is not enough bytes for it
 
Method Summary
static Message.decode_status valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Message.decode_status[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

decoded

public static final Message.decode_status decoded
A complete Diameter message was successfully decoded


not_enough

public static final Message.decode_status not_enough
The buffer appears so far to contain a valid message byte there is not enough bytes for it


garbage

public static final Message.decode_status garbage
The buffer cannot possibly contain a Diameter message

Method Detail

values

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

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

valueOf

public static Message.decode_status valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name