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.util.List<java.lang.ThreadLocal<java.nio.charset.CharsetDecoder>> |
decoders |
private static java.util.regex.Pattern |
HERE_PATTERN |
private static long |
serialVersionUID |
Constructor and Description |
---|
UTF8Properties() |
UTF8Properties(java.io.File file) |
UTF8Properties(java.io.File file,
Reporter reporter) |
UTF8Properties(java.io.File file,
Reporter reporter,
java.lang.String[] syntaxHeaders) |
UTF8Properties(java.io.File file,
java.lang.String[] syntaxHeaders) |
UTF8Properties(java.util.Properties p) |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
decode(byte[] buffer) |
void |
load(java.io.File file,
Reporter reporter) |
void |
load(java.io.File file,
Reporter reporter,
java.lang.String[] syntaxHeaders) |
void |
load(java.io.InputStream in) |
void |
load(java.io.InputStream in,
java.io.File file,
Reporter reporter) |
void |
load(java.io.InputStream in,
java.io.File file,
Reporter reporter,
java.lang.String[] syntaxHeaders) |
void |
load(java.io.Reader r) |
void |
load(java.lang.String source,
java.io.File file,
Reporter reporter) |
void |
load(java.lang.String source,
java.io.File file,
Reporter reporter,
java.lang.String[] syntaxHeaders) |
private UTF8Properties |
replaceAll(java.util.regex.Pattern regex,
java.lang.String replacement) |
UTF8Properties |
replaceAll(java.lang.String pattern,
java.lang.String replacement)
Replace a string in all the values.
|
UTF8Properties |
replaceHere(java.io.File file)
Replace the string "${.}" in all the values with the path of the
specified file.
|
void |
store(java.io.File out) |
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 final java.util.List<java.lang.ThreadLocal<java.nio.charset.CharsetDecoder>> decoders
private static final java.util.regex.Pattern HERE_PATTERN
public UTF8Properties(java.util.Properties p)
public UTF8Properties(java.io.File file, java.lang.String[] syntaxHeaders) throws java.lang.Exception
java.lang.Exception
public UTF8Properties(java.io.File file) throws java.lang.Exception
java.lang.Exception
public UTF8Properties(java.io.File file, Reporter reporter, java.lang.String[] syntaxHeaders) throws java.lang.Exception
java.lang.Exception
public UTF8Properties(java.io.File file, Reporter reporter) throws java.lang.Exception
java.lang.Exception
public UTF8Properties()
public void load(java.io.InputStream in, java.io.File file, Reporter reporter, java.lang.String[] syntaxHeaders) throws java.io.IOException
java.io.IOException
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.lang.String source, java.io.File file, Reporter reporter, java.lang.String[] syntaxHeaders) throws java.io.IOException
java.io.IOException
public void load(java.io.File file, Reporter reporter, java.lang.String[] syntaxHeaders) throws java.lang.Exception
java.lang.Exception
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
private java.lang.String decode(byte[] buffer)
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.File out) throws java.io.IOException
java.io.IOException
public void store(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public UTF8Properties replaceAll(java.lang.String pattern, java.lang.String replacement)
private UTF8Properties replaceAll(java.util.regex.Pattern regex, java.lang.String replacement)
public UTF8Properties replaceHere(java.io.File file)