public class Properties
extends java.util.concurrent.ConcurrentHashMap<java.lang.String,java.lang.String>
Properties, using new stuff like HashMaps and Generics.
Compatible with files generated by the the original Properties class.Properties,
Serialized Formjava.util.concurrent.ConcurrentHashMap.KeySetView<K,V>| Constructor and Description |
|---|
Properties() |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
fromFile(java.io.File file)
Loads a
Properties from the Filesystem. |
void |
load(java.io.InputStream inStream)
Loads values from the InputStream.
|
void |
load(java.io.Reader reader)
Loads values from the Reader.
|
void |
store(java.io.File file,
java.lang.String comments)
Stores values into a File.
|
void |
store(java.io.OutputStream out,
java.lang.String comments)
Stores values into a OutputStream.
|
void |
store(java.io.Writer writer,
java.lang.String comments)
Stores values into a Writer.
|
java.lang.String |
storeToString(java.lang.String comments)
Stores values into a String.
|
clear, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, put, putAll, putIfAbsent, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, remove, remove, replace, replace, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values@NotNull public static Properties fromFile(@NotNull java.io.File file) throws java.io.IOException
Properties from the Filesystem.file - File to read properties from.Properties instance loaded with the content from the file.java.io.IOException - if an IOException occurs.public void load(@NotNull
java.io.Reader reader)
throws java.io.IOException
reader - Reader to read the values from.java.io.IOException - if an IOException occurs.public void load(@NotNull
java.io.InputStream inStream)
throws java.io.IOException
inStream - InputStream to read the values from.java.io.IOException - if an IOException occurs.public void store(@NotNull
java.io.OutputStream out,
@Nullable
java.lang.String comments)
throws java.io.IOException
out - OutputStream to write the values to.comments - (Optional) Comments written on the beginning of the OutputStream.java.io.IOException - if an IOException occurs.public void store(@NotNull
java.io.Writer writer,
@Nullable
java.lang.String comments)
throws java.io.IOException
writer - Writer to write the values to.comments - (Optional) Comments written on the beginning of the Writer.java.io.IOException - if an IOException occurs.public void store(@NotNull
java.io.File file,
@Nullable
java.lang.String comments)
throws java.io.IOException
file - File to write the values to.comments - (Optional) Comments written on the beginning of the File.java.io.IOException - if an IOException occurs.@NotNull
public java.lang.String storeToString(@Nullable
java.lang.String comments)
throws java.io.IOException
comments - (Optional) Comments written on the beginning of the File.java.io.IOException - if an IOException occurs.