Enum Class FileTransferType

java.lang.Object
java.lang.Enum<FileTransferType>
com.northconcepts.datapipeline.filesystem.ftp.FileTransferType
All Implemented Interfaces:
Serializable, Comparable<FileTransferType>, Constable

public enum FileTransferType extends Enum<FileTransferType>
Selects whether an FtpFileSystem transfers files as ASCII text or as binary.
  • Enum Constant Details

    • ASCII

      public static final FileTransferType ASCII
      Files to be transferred will be treated as ASCII.
    • BINARY

      public static final FileTransferType BINARY
      Files to be transferred will be treated as a binary image, i.e.. no translations will be performed.
  • Method Details

    • values

      public static FileTransferType[] 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

      public static FileTransferType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
      Returns the Apache Commons Net constant for this type, as passed to FTPClient.setFileType.