public enum ForceEnum extends Enum<ForceEnum>
RandomAccessFile
is
opened.Enum Constant and Description |
---|
Force
The file data, but NOT the file metadata, are forced to stable storage.
|
ForceMetadata
The file data and the file metadata are forced to stable storage.
|
No
The file is not forced to stable storage.
|
Modifier and Type | Method and Description |
---|---|
String |
asFileMode()
Return the read-write file mode corresponding to the enum value.
|
static ForceEnum |
parse(String s)
Parse a string whose contents must be "No", "Force", "ForceMetadata".
|
String |
toString() |
static ForceEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ForceEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ForceEnum No
public static final ForceEnum Force
FileChannel.force(boolean)
public static final ForceEnum ForceMetadata
FileChannel.force(boolean)
public static ForceEnum[] values()
for (ForceEnum c : ForceEnum.values()) System.out.println(c);
public static ForceEnum 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 ForceEnum parse(String s)
s
- The string.ForceEnum
.public String asFileMode()
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.