public class Properties extends HashMap<String,String>
Constants,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
static String |
IS_PROPERTY_VALUE_TRIMMED_KEY
Spaces may be legitimate part of the value, there is no reason to trim them.
|
protected static String |
multiLineEscape |
static String |
PROPERTIES_MULTILINE_ESCAPE |
| Constructor and Description |
|---|
Properties() |
Properties(int size) |
Properties(com.fasterxml.jackson.databind.JsonNode node)
Constructs a Properties map based on a Json node.
|
Properties(Map<String,String> props) |
Properties(String content) |
| Modifier and Type | Method and Description |
|---|---|
protected static boolean |
isPropertyValueTrimmed()
Default value is
false. |
static Map<String,String> |
loadProperties(Reader reader) |
static void |
loadProperties(Reader reader,
Map<String,String> map) |
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesequals, hashCode, toStringpublic static final String IS_PROPERTY_VALUE_TRIMMED_KEY
public static final String PROPERTIES_MULTILINE_ESCAPE
protected static final String multiLineEscape
public Properties()
public Properties(int size)
public Properties(Map<String,String> props)
public Properties(String content) throws IOException
IOExceptionpublic Properties(com.fasterxml.jackson.databind.JsonNode node) throws IOException
IOExceptionprotected static boolean isPropertyValueTrimmed()
false.public static Map<String,String> loadProperties(Reader reader) throws IOException
IOExceptionpublic static void loadProperties(Reader reader, Map<String,String> map) throws IOException
IOExceptionCopyright © 2019 Nuxeo. All rights reserved.