|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.wocompat.PropertyListSerialization
public class PropertyListSerialization
A PropertyListSerialization is a utility class
that reads and stores files in NeXT/Apple
property list format. Unlike corresponding WebObjects
class, PropertyListSerialization
uses standard
Java collections (lists and maps) to store property lists.
Constructor Summary | |
---|---|
PropertyListSerialization()
|
Method Summary | |
---|---|
protected static java.lang.String |
escapeString(java.lang.String str)
Escapes all doublequotes and backslashes. |
static java.lang.Object |
propertyListFromFile(java.io.File f)
Reads a property list file. |
static java.lang.Object |
propertyListFromStream(java.io.InputStream in)
Reads a property list data from InputStream. |
static void |
propertyListToFile(java.io.File f,
java.lang.Object plist)
Saves property list to file. |
protected static java.lang.String |
quoteString(java.lang.String str)
Returns a quoted String, with all the escapes preprocessed. |
protected static void |
writeObject(java.lang.String offset,
java.io.Writer out,
java.lang.Object plist)
Internal method to recursively write a property list object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyListSerialization()
Method Detail |
---|
public static java.lang.Object propertyListFromFile(java.io.File f) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public static java.lang.Object propertyListFromStream(java.io.InputStream in)
public static void propertyListToFile(java.io.File f, java.lang.Object plist)
protected static void writeObject(java.lang.String offset, java.io.Writer out, java.lang.Object plist) throws java.io.IOException
java.io.IOException
protected static java.lang.String escapeString(java.lang.String str)
protected static java.lang.String quoteString(java.lang.String str)
c >= 'a' && c <= 'z' c >= 'A' && c <= 'Z' c >= '0' && c <= '9' c == '_' c == '$' c == ':' c == '.' c == '/'
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |