public enum ERandomAccessFileMode extends Enum<ERandomAccessFileMode>
Enum Constant and Description |
---|
READ_ONLY
Open for reading only.
|
READ_WRITE
Open for reading and writing.
|
READ_WRITE_SYNCHRONOUSLY
Open for reading and writing, as with "rw", and also require that
every update to the file's content or metadata be written synchronously to
the underlying storage device.
|
READ_WRITE_SYNCHRONOUSLY_ONLY_CONTENT
Open for reading and writing, as with "rw", and also require that
every update to the file's content be written synchronously to the
underlying storage device.
|
Modifier and Type | Method and Description |
---|---|
static ERandomAccessFileMode |
getFromModeOrNull(String sMode) |
String |
getMode() |
static ERandomAccessFileMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ERandomAccessFileMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ERandomAccessFileMode READ_ONLY
public static final ERandomAccessFileMode READ_WRITE
public static final ERandomAccessFileMode READ_WRITE_SYNCHRONOUSLY
public static final ERandomAccessFileMode READ_WRITE_SYNCHRONOUSLY_ONLY_CONTENT
public static ERandomAccessFileMode[] values()
for (ERandomAccessFileMode c : ERandomAccessFileMode.values()) System.out.println(c);
public static ERandomAccessFileMode 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 null@Nullable public static ERandomAccessFileMode getFromModeOrNull(@Nullable String sMode)
Copyright © 2014–2019 Philip Helger. All rights reserved.