Class UnicodeProperties

Object
AbstractMap<K,V>
HashMap<String,String>
com.liferay.portal.kernel.util.UnicodeProperties
All Implemented Interfaces:
Serializable, Cloneable, Map<String,String>

public class UnicodeProperties extends HashMap<String,String>

This is a rewrite of java.util.Properties that is not synchronized and natively supports non-ASCII encodings. It can also be configured to be "safe", allowing the values to have new line characters. When stored to a given BufferedWriter, "safe" properties will replace all new line characters with a _SAFE_NEWLINE_CHARACTER_.

In its current form, this is not intended to replace java.util.Properties for reading properties flat files. This class is not thread-safe.

Author:
Alexander Chow
See Also: