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, setString
public FileBasedSettings(File stream)
public File getStream()
public void flush() throws IOException
IOException
public void load() throws IOException
IOException
public void close() throws IOException
IOException
public void setLong(String key, long value, boolean flush) throws IOException
Settings
setLong
in class Settings
key
- keyvalue
- valueflush
- whether to save to persistent storage immediatelyIOException
- if value storing failedCopyright © 2005–2024 Onix Solutions. All rights reserved.