public class RsProperties extends Properties
Properties
that can save an xml-representation
of itself sorted on key. Several type conversions can be used.defaults
Constructor and Description |
---|
RsProperties() |
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<Object,Object>> |
entrySet()
Enables xml output sorted on entry key.
|
boolean |
getBool(String key) |
ZonedDateTime |
getDateTime(String key) |
int |
getInt(String key) |
void |
loadFromXML(File file) |
Object |
setBool(String key,
boolean value) |
Object |
setDateTime(String key,
ZonedDateTime zdt) |
Object |
setInt(String key,
int value) |
void |
storeToXML(File file,
String comment) |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public Object setDateTime(String key, ZonedDateTime zdt)
public ZonedDateTime getDateTime(String key)
public int getInt(String key)
public boolean getBool(String key)
public void storeToXML(File file, String comment) throws IOException
IOException
public void loadFromXML(File file) throws IOException
IOException
Copyright © 2017. All rights reserved.