org.opencms.util
Class CmsPropertyUtils

java.lang.Object
  extended by org.opencms.util.CmsPropertyUtils

public final class CmsPropertyUtils
extends java.lang.Object

Utilities to access property files.

Since:
6.0.0
Version:
$Revision: 1.15 $
Author:
Alexander Kandzior

Method Summary
static org.apache.commons.collections.ExtendedProperties loadProperties(java.io.InputStream stream)
          Loads an extended property file and performs unescaping of "," and "=" entries.
static org.apache.commons.collections.ExtendedProperties loadProperties(java.lang.String file)
          Loads an extended property file and performs unescaping of "," and "=" entries.
static void unescapeProperties(org.apache.commons.collections.ExtendedProperties properties)
          Unescapes the given properties, unescaping "," and "=" entries.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

loadProperties

public static org.apache.commons.collections.ExtendedProperties loadProperties(java.io.InputStream stream)
                                                                        throws java.io.IOException
Loads an extended property file and performs unescaping of "," and "=" entries.

Parameters:
stream - the input stream to read the properties from
Returns:
the initialized extended properties
Throws:
java.io.IOException - in case of IO errors

loadProperties

public static org.apache.commons.collections.ExtendedProperties loadProperties(java.lang.String file)
                                                                        throws java.io.IOException
Loads an extended property file and performs unescaping of "," and "=" entries.

Parameters:
file - the file to read the properties from
Returns:
the initialized extended properties
Throws:
java.io.IOException - in case of IO errors

unescapeProperties

public static void unescapeProperties(org.apache.commons.collections.ExtendedProperties properties)
Unescapes the given properties, unescaping "," and "=" entries.

Parameters:
properties - the properties to adjust