|
||||||||||
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 String |
escapeString(String str)
Escapes all doublequotes and backslashes. |
static Object |
propertyListFromFile(File f)
Reads a property list file. |
static Object |
propertyListFromFile(File f,
PlistDataStructureFactory factory)
Reads a property list file. |
static Object |
propertyListFromStream(InputStream in)
Reads a property list data from InputStream. |
static Object |
propertyListFromStream(InputStream in,
PlistDataStructureFactory factory)
Reads a property list data from InputStream. |
static void |
propertyListToFile(File f,
Object plist)
Saves property list to file. |
static void |
propertyListToStream(OutputStream os,
Object plist)
Saves property list to file. |
protected static String |
quoteString(String str)
Returns a quoted String, with all the escapes preprocessed. |
protected static void |
writeObject(String offset,
Writer out,
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 Object propertyListFromFile(File f) throws FileNotFoundException
FileNotFoundException
public static Object propertyListFromFile(File f, PlistDataStructureFactory factory) throws FileNotFoundException
FileNotFoundException
public static Object propertyListFromStream(InputStream in)
public static Object propertyListFromStream(InputStream in, PlistDataStructureFactory factory)
public static void propertyListToFile(File f, Object plist)
public static void propertyListToStream(OutputStream os, Object plist)
protected static void writeObject(String offset, Writer out, Object plist) throws IOException
IOException
protected static String escapeString(String str)
protected static String quoteString(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 |