org.apache.ftpserver.ftplet
Class DataType

java.lang.Object
  extended by org.apache.ftpserver.ftplet.DataType

public class DataType
extends java.lang.Object

Type safe enum for describing the data type


Field Summary
static DataType ASCII
          ASCII data type
static DataType BINARY
          Binary data type
 
Method Summary
static DataType parseArgument(char argument)
          Parses the argument value from the TYPE command into the type safe class
 java.lang.String toString()
          Return the data type string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BINARY

public static final DataType BINARY
Binary data type


ASCII

public static final DataType ASCII
ASCII data type

Method Detail

parseArgument

public static DataType parseArgument(char argument)
Parses the argument value from the TYPE command into the type safe class

Parameters:
argument - The argument value from the TYPE command. Not case sensitive
Returns:
The appropriate data type
Throws:
java.lang.IllegalArgumentException - If the data type is unknown

toString

public java.lang.String toString()
Return the data type string.

Overrides:
toString in class java.lang.Object


Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.