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 |
|---|---|
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 nullCopyright © 2006–2015 phloc systems. All rights reserved.