Enum Class FileTransferMode

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

public enum FileTransferMode extends Enum<FileTransferMode>
Selects how an FtpFileSystem transfers file data: as a stream, in blocks or compressed.
  • Enum Constant Details

    • STREAM

      public static final FileTransferMode STREAM
      Transfer files as a stream of bytes.
    • BLOCK

      public static final FileTransferMode BLOCK
      Transfer files as a series of blocks.
    • COMPRESSED

      public static final FileTransferMode COMPRESSED
      Transfer files as FTP compressed data.
  • Method Details

    • values

      public static FileTransferMode[] 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 FileTransferMode 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 mode, as passed to FTPClient.setFileTransferMode.