Enum Class OpenOption
- All Implemented Interfaces:
- Serializable, Comparable<OpenOption>, Constable
Open options for 
FilePageArray.- 
Nested Class SummaryNested classes/interfaces inherited from class EnumEnum.EnumDesc<E>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionOptional hint to apply at file close indicating that the file data will not be accessed in the near future.Create the file if it doesn't already exist.All file I/O should be durable and bypass the file system cache, if possible.Map the file into main memory.File contents don't persist after an OS crash or power failure.Indicate that file will be accessed in random order.Open file in read-only mode.Optional hint to perform readahead on the file.All file I/O should be durable.
- 
Method SummaryModifier and TypeMethodDescriptionstatic OpenOptionReturns the enum constant of this class with the specified name.static OpenOption[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
READ_ONLYOpen file in read-only mode.
- 
CREATECreate the file if it doesn't already exist.
- 
MAPPEDMap the file into main memory.
- 
SYNC_IOAll file I/O should be durable.
- 
DIRECT_IOAll file I/O should be durable and bypass the file system cache, if possible.
- 
NON_DURABLEFile contents don't persist after an OS crash or power failure.
- 
RANDOM_ACCESSIndicate that file will be accessed in random order.
- 
READAHEADOptional hint to perform readahead on the file.
- 
CLOSE_DONTNEEDOptional hint to apply at file close indicating that the file data will not be accessed in the near future.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- IllegalArgumentException- if this enum class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-