| java.lang.Object com.ecyrd.jspwiki.htmltowiki.PropertiesUtils
PropertiesUtils | final public class PropertiesUtils (Code) | | some usefull methods for properties
author: Sebastian Baltes (sbaltes@gmx.com) version: 1.0 |
saveConvert | public static String saveConvert(String string, boolean encodeWhiteSpace)(Code) | | Encodes a property file string from a supplied key/value line.
Parameters: string - the string to encode Parameters: encodeWhiteSpace - true if whitespace should be encoded also the converted string |
toLine | public static String toLine(String key, String value)(Code) | | Generates a property file line from a supplied key and value.
Parameters: key - the property's key Parameters: value - the property's value the converted string |
toSortedString | public static String toSortedString(Properties properties)(Code) | |
like Properties.store, but stores the properties in sorted order
Parameters: properties - the properties object String the properties, nicely formatted |
|
|