com.hs.mail.imap.server.codec
Enum ImapMessageDecoder.State

java.lang.Object
  extended by java.lang.Enum<ImapMessageDecoder.State>
      extended by com.hs.mail.imap.server.codec.ImapMessageDecoder.State
All Implemented Interfaces:
Serializable, Comparable<ImapMessageDecoder.State>
Enclosing class:
ImapMessageDecoder

protected static enum ImapMessageDecoder.State
extends Enum<ImapMessageDecoder.State>

The internal state of ImapMessageDecoder. Internal use only.


Enum Constant Summary
READ_COMMAND
           
READ_LITERAL
           
READ_REMAINDER
           
 
Method Summary
static ImapMessageDecoder.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ImapMessageDecoder.State[] 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

READ_COMMAND

public static final ImapMessageDecoder.State READ_COMMAND

READ_LITERAL

public static final ImapMessageDecoder.State READ_LITERAL

READ_REMAINDER

public static final ImapMessageDecoder.State READ_REMAINDER
Method Detail

values

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

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

valueOf

public static ImapMessageDecoder.State 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


Copyright © 2011. All Rights Reserved.