public class UTF8Properties extends Properties
An additional problem is backslash encoding. When reading properties, the Properties class skips backslashes that have no correct next character. This is not a real problem if it was not for bndtools where it turned out to be real tricky to get the UI to understand this since text widgets read from the properties (backslash removed) while the main text is just, well, the main text and has the backslash present. Since we strife to fidelity, we actually fixup the
This class can (and probably should) be used anywhere a Properties class is used.
defaults
Constructor and Description |
---|
UTF8Properties() |
UTF8Properties(Properties p) |
Modifier and Type | Method and Description |
---|---|
void |
load(InputStream in) |
void |
load(Reader r) |
void |
store(OutputStream out,
String msg) |
getProperty, getProperty, list, list, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML, stringPropertyNames
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, toString, values
public UTF8Properties(Properties p)
public UTF8Properties()
public void load(InputStream in) throws IOException
load
in class Properties
IOException
public void load(Reader r) throws IOException
load
in class Properties
IOException
public void store(OutputStream out, String msg) throws IOException
store
in class Properties
IOException
Copyright © 2015 aQute SARL. All rights reserved.