public enum FileTransferMode extends Enum<FileTransferMode> implements OpenOption, CopyOption
Enum Constant and Description |
---|
BLOCK
Indicates that files are to be transfered as series of blocks.
|
COMPRESSED
Indicate that files are to be transfered as FTP compressed data.
|
DEFLATE
Indicate that files are to be transferred as FTP (un)compressing data in the "deflate" compression format.
|
STREAM
Indicates that files are to be transfered as streams of bytes.
|
Modifier and Type | Method and Description |
---|---|
static FileTransferMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileTransferMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileTransferMode STREAM
public static final FileTransferMode BLOCK
public static final FileTransferMode COMPRESSED
public static final FileTransferMode DEFLATE
public static FileTransferMode[] values()
for (FileTransferMode c : FileTransferMode.values()) System.out.println(c);
public static FileTransferMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016–2024. All rights reserved.