public class UTF8Properties extends Properties
This class can (and probably should) be used anywhere a Properties class is used.
defaults| Constructor and Description |
|---|
UTF8Properties() |
UTF8Properties(File file) |
UTF8Properties(File file,
Reporter reporter) |
UTF8Properties(File file,
Reporter reporter,
String[] syntaxHeaders) |
UTF8Properties(File file,
String[] syntaxHeaders) |
UTF8Properties(Properties p) |
| Modifier and Type | Method and Description |
|---|---|
void |
load(File file,
Reporter reporter) |
void |
load(File file,
Reporter reporter,
String[] syntaxHeaders) |
void |
load(InputStream in) |
void |
load(InputStream in,
File file,
Reporter reporter) |
void |
load(InputStream in,
File file,
Reporter reporter,
String[] syntaxHeaders) |
void |
load(Reader r) |
void |
load(String source,
File file,
Reporter reporter) |
void |
load(String source,
File file,
Reporter reporter,
String[] syntaxHeaders) |
UTF8Properties |
replaceAll(String pattern,
String replacement)
Replace a string in all the values.
|
UTF8Properties |
replaceHere(File file)
Replace the string "${.}" in all the values with the path of the
specified file.
|
void |
store(File out) |
void |
store(OutputStream out) |
void |
store(OutputStream out,
String msg) |
void |
store(Writer out,
String msg) |
getProperty, getProperty, list, list, loadFromXML, propertyNames, save, setProperty, 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 UTF8Properties(Properties p)
public UTF8Properties(File file, String[] syntaxHeaders) throws Exception
Exceptionpublic UTF8Properties(File file, Reporter reporter, String[] syntaxHeaders) throws Exception
Exceptionpublic UTF8Properties(File file, Reporter reporter) throws Exception
Exceptionpublic UTF8Properties()
public void load(InputStream in, File file, Reporter reporter, String[] syntaxHeaders) throws IOException
IOExceptionpublic void load(InputStream in, File file, Reporter reporter) throws IOException
IOExceptionpublic void load(String source, File file, Reporter reporter) throws IOException
IOExceptionpublic void load(String source, File file, Reporter reporter, String[] syntaxHeaders) throws IOException
IOExceptionpublic void load(File file, Reporter reporter, String[] syntaxHeaders) throws Exception
Exceptionpublic void load(InputStream in) throws IOException
load in class PropertiesIOExceptionpublic void load(Reader r) throws IOException
load in class PropertiesIOExceptionpublic void store(OutputStream out, String msg) throws IOException
store in class PropertiesIOExceptionpublic void store(Writer out, String msg) throws IOException
store in class PropertiesIOExceptionpublic void store(File out) throws IOException
IOExceptionpublic void store(OutputStream out) throws IOException
IOExceptionpublic UTF8Properties replaceAll(String pattern, String replacement)
public UTF8Properties replaceHere(File file)
Copyright © 2021. All rights reserved.