org.apache.commons.pipeline.stage
Enum FtpFileDownloadStage.FileSpec.FileType

java.lang.Object
  extended by java.lang.Enum<FtpFileDownloadStage.FileSpec.FileType>
      extended by org.apache.commons.pipeline.stage.FtpFileDownloadStage.FileSpec.FileType
All Implemented Interfaces:
Serializable, Comparable<FtpFileDownloadStage.FileSpec.FileType>
Enclosing class:
FtpFileDownloadStage.FileSpec

public static enum FtpFileDownloadStage.FileSpec.FileType
extends Enum<FtpFileDownloadStage.FileSpec.FileType>

Enumeration of legal FTP file tranfer types


Enum Constant Summary
ASCII
          ASCII text transfer mode, with end of line conversion.
BINARY
          Binary transfer mode, no changes made to data stream.
 
Method Summary
 int intValue()
          Get the integer value of the FTP transfer mode enumeration.
static FtpFileDownloadStage.FileSpec.FileType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FtpFileDownloadStage.FileSpec.FileType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ASCII

public static final FtpFileDownloadStage.FileSpec.FileType ASCII
ASCII text transfer mode, with end of line conversion.


BINARY

public static final FtpFileDownloadStage.FileSpec.FileType BINARY
Binary transfer mode, no changes made to data stream.

Method Detail

values

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

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

valueOf

public static FtpFileDownloadStage.FileSpec.FileType 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

intValue

public int intValue()
Get the integer value of the FTP transfer mode enumeration.

Returns:
the integer equivalent to the FTP transfer mode setting


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.