| Constructor and Description |
|---|
PreferencesStore(Preferences preferences) |
PreferencesStore(Preferences prefs,
String key) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
data() |
void |
data(byte[] data) |
void |
delete()
Deletes the data.
|
boolean |
exists()
Returns
true if and only if the data exists. |
InputStream |
input()
Returns a new input stream for reading the binary data from this source.
|
boolean |
isUserNode() |
OutputStream |
output()
Returns a new output stream for writing the binary data to this sink.
|
void |
sync() |
public PreferencesStore(Preferences preferences)
public PreferencesStore(Preferences prefs, String key)
@Nullable public byte[] data()
public void data(@CheckForNull byte[] data)
public void delete()
throws IOException
Storedelete in interface StoreIOExceptionpublic boolean exists()
Storetrue if and only if the data exists.public InputStream input() throws IOException
Sourceinput in interface SourceIOExceptionpublic boolean isUserNode()
public OutputStream output() throws IOException
Sinkoutput in interface SinkIOExceptionpublic void sync()
throws IOException
IOExceptionCopyright © 2005–2017 Schlichtherle IT Services. All rights reserved.