public class Config extends Object implements Storable<String,String>, AutoCloseable
| Constructor and Description |
|---|
Config(String filename) |
Config(String filename,
Fx21<String,String,Boolean> lineFilter) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the storable
|
boolean |
delete(String key)
Delete a record
|
void |
forEach(BiConsumer<String,String> f) |
String |
get(String key)
Get a record for the key.
|
void |
save() |
void |
set(String key,
String rec)
Add a record with the key.
|
public Config(String filename) throws IOException
IOExceptionpublic Config(String filename, Fx21<String,String,Boolean> lineFilter) throws IOException
IOExceptionpublic void forEach(BiConsumer<String,String> f)
public void save()
throws IOException
IOExceptionpublic String get(String key)
Storablepublic void set(String key, String rec)
Storablepublic boolean delete(String key)
Storablepublic void close()
throws IOException
Storableclose in interface AutoCloseableclose in interface Storable<String,String>IOExceptionCopyright © 2023. All rights reserved.