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