org.apache.ftpserver.ftplet
Class Structure

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

public class Structure
extends java.lang.Object

Type safe enum for describing the structure


Field Summary
static Structure FILE
          File structure
 
Method Summary
static Structure parseArgument(char argument)
          Parses the argument value from the STRU command into the type safe class
 java.lang.String toString()
          String representation of the structure.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FILE

public static final Structure FILE
File structure

Method Detail

parseArgument

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

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

toString

public java.lang.String toString()
String representation of the structure.

Overrides:
toString in class java.lang.Object


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