public class FileBasedSettings extends Settings
| Constructor and Description |
|---|
FileBasedSettings(File stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
File |
getStream() |
void |
load() |
void |
setLong(String key,
long value,
boolean flush)
Sets the value corresponding to the given key.
|
getBoolean, getBoolean, getInteger, getInteger, getLong, getLong, getString, getString, isDefined, setBoolean, setBoolean, setInteger, setInteger, setLong, setString, setStringpublic FileBasedSettings(File stream)
public File getStream()
public void flush()
throws IOException
IOExceptionpublic void load()
throws IOException
IOExceptionpublic void close()
throws IOException
IOExceptionpublic void setLong(String key, long value, boolean flush) throws IOException
SettingssetLong in class Settingskey - keyvalue - valueflush - whether to save to persistent storage immediatelyIOException - if value storing failedCopyright © 2014–2025 Onix Solutions. All rights reserved.