public static enum Reader.FileMode extends Enum<Reader.FileMode>
| Enum Constant and Description |
|---|
MEMORYLoads the database into memory when the reader is constructed. |
MEMORY_MAPPEDThe default file mode. |
| Modifier and Type | Method and Description |
|---|---|
static Reader.FileMode | valueOf(String name)Returns the enum constant of this type with the specified name. |
static Reader.FileMode[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. |
public static final Reader.FileMode MEMORY
public static final Reader.FileMode MEMORY_MAPPED
public static Reader.FileMode 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 Reader.FileMode[] values()
for (Reader.FileMode c : Reader.FileMode.values()) System.out.println(c);