public class UTF8Properties
extends java.util.Properties
This class can (and probably should) be used anywhere a Properties class is used.
Modifier and Type | Field and Description |
---|---|
private static java.nio.charset.Charset |
ISO8859_1 |
private static long |
serialVersionUID |
private static java.nio.charset.Charset |
UTF8 |
Constructor and Description |
---|
UTF8Properties() |
UTF8Properties(java.util.Properties p) |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
convert(byte[] buffer,
java.nio.charset.Charset charset) |
void |
load(java.io.File file,
Reporter reporter) |
void |
load(java.io.InputStream in) |
void |
load(java.io.InputStream in,
java.io.File file,
Reporter reporter) |
void |
load(java.io.Reader r) |
void |
load(java.lang.String source,
java.io.File file,
Reporter reporter) |
(package private) java.lang.String |
read(java.io.InputStream in) |
void |
store(java.io.OutputStream out) |
void |
store(java.io.OutputStream out,
java.lang.String msg) |
void |
store(java.io.Writer out,
java.lang.String msg) |
getProperty, getProperty, list, list, loadFromXML, propertyNames, save, setProperty, 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
private static final long serialVersionUID
private static java.nio.charset.Charset UTF8
private static java.nio.charset.Charset ISO8859_1
public UTF8Properties(java.util.Properties p)
public UTF8Properties()
public void load(java.io.InputStream in, java.io.File file, Reporter reporter) throws java.io.IOException
java.io.IOException
public void load(java.lang.String source, java.io.File file, Reporter reporter) throws java.io.IOException
java.io.IOException
public void load(java.io.File file, Reporter reporter) throws java.lang.Exception
java.lang.Exception
public void load(java.io.InputStream in) throws java.io.IOException
load
in class java.util.Properties
java.io.IOException
public void load(java.io.Reader r) throws java.io.IOException
load
in class java.util.Properties
java.io.IOException
java.lang.String read(java.io.InputStream in) throws java.io.IOException
java.io.IOException
private java.lang.String convert(byte[] buffer, java.nio.charset.Charset charset) throws java.io.IOException
java.io.IOException
public void store(java.io.OutputStream out, java.lang.String msg) throws java.io.IOException
store
in class java.util.Properties
java.io.IOException
public void store(java.io.Writer out, java.lang.String msg) throws java.io.IOException
store
in class java.util.Properties
java.io.IOException
public void store(java.io.OutputStream out) throws java.io.IOException
java.io.IOException