@ThreadSafe public enum FileTransferType extends Enum<FileTransferType>
Enum Constant and Description |
---|
MAPPED
Uses a
MappedByteBuffer to transfer data over the network. |
TRANSFER
Uses
FileChannel.transferTo(long, long, java.nio.channels.WritableByteChannel) to transfer data over the network. |
Modifier and Type | Method and Description |
---|---|
static FileTransferType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FileTransferType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FileTransferType MAPPED
MappedByteBuffer
to transfer data over the network.public static final FileTransferType TRANSFER
FileChannel.transferTo(long, long, java.nio.channels.WritableByteChannel)
to transfer data over the network.public static FileTransferType[] values()
for (FileTransferType c : FileTransferType.values()) System.out.println(c);
public static FileTransferType 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 © 2023. All Rights Reserved.