Enum Class FileTransferType
- All Implemented Interfaces:
Serializable,Comparable<FileTransferType>,Constable
Selects whether an
FtpFileSystem transfers files as ASCII text or as binary.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintgetValue()Returns the Apache Commons Net constant for this type, as passed toFTPClient.setFileType.static FileTransferTypeReturns the enum constant of this class with the specified name.static FileTransferType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ASCII
Files to be transferred will be treated as ASCII. -
BINARY
Files to be transferred will be treated as a binary image, i.e.. no translations will be performed.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue()Returns the Apache Commons Net constant for this type, as passed toFTPClient.setFileType.
-