- All Implemented Interfaces:
Serializable,Comparable<JschSftp.Mode>,Constable
- Enclosing class:
JschSftp
Enumeration of file transfer modes supported by JSch.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAppend mode: If the target file exists, the transferred file will be appended to the end of it.Overwrite mode: If the target file exists, it will be completely overwritten.Resume mode: If a file transfer is interrupted, it can be resumed from the point of interruption. -
Method Summary
Modifier and TypeMethodDescriptionstatic JschSftp.ModeReturns the enum constant of this class with the specified name.static JschSftp.Mode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OVERWRITE
Overwrite mode: If the target file exists, it will be completely overwritten. -
RESUME
Resume mode: If a file transfer is interrupted, it can be resumed from the point of interruption. -
APPEND
Append mode: If the target file exists, the transferred file will be appended to the end of it.
-
-
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
-