public static enum SftpClient.OpenMode extends Enum<SftpClient.OpenMode>
Enum Constant and Description |
---|
Append |
Create |
Exclusive |
Read |
Truncate |
Write |
Modifier and Type | Field and Description |
---|---|
static Set<OpenOption> |
SUPPORTED_OPTIONS
|
Modifier and Type | Method and Description |
---|---|
static Set<SftpClient.OpenMode> |
fromOpenOptions(Collection<? extends OpenOption> options)
Converts
StandardOpenOption -s into SftpClient.OpenMode -s |
static SftpClient.OpenMode |
valueOf(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 Set<OpenOption> SUPPORTED_OPTIONS
public static SftpClient.OpenMode[] values()
for (SftpClient.OpenMode c : SftpClient.OpenMode.values()) System.out.println(c);
public static SftpClient.OpenMode 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 nullpublic static Set<SftpClient.OpenMode> fromOpenOptions(Collection<? extends OpenOption> options)
StandardOpenOption
-s into SftpClient.OpenMode
-soptions
- The original options - ignored if null
/emptySet
of the equivalent modesIllegalArgumentException
- If an unsupported option is requestedSUPPORTED_OPTIONS
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.