public final class PropertiesUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
saveConvert(String string,
boolean encodeWhiteSpace)
Encodes a property file string from a supplied key/value line.
|
static String |
toLine(String key,
String value)
Generates a property file line from a supplied key and value.
|
static String |
toSortedString(Properties properties)
like Properties.store, but stores the properties in sorted order
|
public static String toSortedString(Properties properties)
like Properties.store, but stores the properties in sorted order
properties
- the properties objectpublic static String toLine(String key, String value)
key
- the property's keyvalue
- the property's valuepublic static String saveConvert(String string, boolean encodeWhiteSpace)
string
- the string to encodeencodeWhiteSpace
- true
if whitespace should be encoded alsoCopyright © 2001-2018 The Apache Software Foundation. All rights reserved.