jerklib.events.dcc
Enum DccEvent.DccType

java.lang.Object
  extended by java.lang.Enum<DccEvent.DccType>
      extended by jerklib.events.dcc.DccEvent.DccType
All Implemented Interfaces:
Serializable, Comparable<DccEvent.DccType>
Enclosing interface:
DccEvent

public static enum DccEvent.DccType
extends Enum<DccEvent.DccType>

Type enum is used to determine type. It is returned from getDccType()


Enum Constant Summary
ACCEPT
          If the sender supports DCC RESUME, it replies with: DCC ACCEPT filename port position
CHAT
          Request to start a DCC CHAT.
RESUME
          Ask the sender to skip part of the file.
SEND
          Request to start a DCC SEND.
UNKNOWN
          Used then the DCC command is unknown.
 
Method Summary
static DccEvent.DccType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DccEvent.DccType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SEND

public static final DccEvent.DccType SEND
Request to start a DCC SEND. The sender starts with: DCC SEND filename ip port (and optionally file size)


RESUME

public static final DccEvent.DccType RESUME
Ask the sender to skip part of the file. DCC RESUME filename port position


ACCEPT

public static final DccEvent.DccType ACCEPT
If the sender supports DCC RESUME, it replies with: DCC ACCEPT filename port position


CHAT

public static final DccEvent.DccType CHAT
Request to start a DCC CHAT. Usual format: DCC CHAT protocol ip port


UNKNOWN

public static final DccEvent.DccType UNKNOWN
Used then the DCC command is unknown.

Method Detail

values

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

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

valueOf

public static DccEvent.DccType 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
NullPointerException - if the argument is null