public class UTF8Properties extends Properties
Properties to read and write UTF-8 encoded
property files.defaults| Constructor and Description |
|---|
UTF8Properties() |
| Modifier and Type | Method and Description |
|---|---|
void |
load(InputStream is)
Reads a property list (key and element pairs) from the input byte stream.
|
void |
load(Reader reader) |
getProperty, getProperty, list, list, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNamesclear, 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, valuespublic void load(InputStream is) throws IOException
load(Reader) and is assumed to use the ISO
UTF-8 character encoding.
The specified stream remains open after this method returns.
load in class Propertiesis - the input stream.IOException - if an error occurred when reading from the input stream.public void load(Reader reader) throws IOException
load in class PropertiesIOExceptionCopyright © 2015. All rights reserved.