public static enum SftpClient.OpenMode extends java.lang.Enum<SftpClient.OpenMode>
Enum Constant and Description |
---|
Append |
Create |
Exclusive |
Read |
Truncate |
Write |
Modifier and Type | Field and Description |
---|---|
static java.util.Set<java.nio.file.OpenOption> |
SUPPORTED_OPTIONS
|
Modifier and Type | Method and Description |
---|---|
static java.util.Set<SftpClient.OpenMode> |
fromOpenOptions(java.util.Collection<? extends java.nio.file.OpenOption> options)
Converts
StandardOpenOption -s into SftpClient.OpenMode -s |
static SftpClient.OpenMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SftpClient.OpenMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SftpClient.OpenMode Read
public static final SftpClient.OpenMode Write
public static final SftpClient.OpenMode Append
public static final SftpClient.OpenMode Create
public static final SftpClient.OpenMode Truncate
public static final SftpClient.OpenMode Exclusive
public static final java.util.Set<java.nio.file.OpenOption> SUPPORTED_OPTIONS
public static SftpClient.OpenMode[] values()
for (SftpClient.OpenMode c : SftpClient.OpenMode.values()) System.out.println(c);
public static SftpClient.OpenMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.util.Set<SftpClient.OpenMode> fromOpenOptions(java.util.Collection<? extends java.nio.file.OpenOption> options)
StandardOpenOption
-s into SftpClient.OpenMode
-soptions
- The original options - ignored if null
/emptySet
of the equivalent modesjava.lang.IllegalArgumentException
- If an unsupported option is requestedSUPPORTED_OPTIONS