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(org.codehaus.jackson.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, values
equals, hashCode, toString
public 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
IOException
public Properties(org.codehaus.jackson.JsonNode node) throws IOException
node
- IOException
protected static boolean isPropertyValueTrimmed()
false
.public static Map<String,String> loadProperties(Reader reader) throws IOException
IOException
public static void loadProperties(Reader reader, Map<String,String> map) throws IOException
IOException
Copyright © 2017 Nuxeo. All rights reserved.