public class PropertyListSerialization extends Object
PropertyListSerialization uses standard Java collections
(lists and maps) to store property lists.| Constructor and Description |
|---|
PropertyListSerialization() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static Object propertyListFromFile(File f) throws FileNotFoundException
FileNotFoundExceptionpublic static Object propertyListFromFile(File f, PlistDataStructureFactory factory) throws FileNotFoundException
FileNotFoundExceptionpublic 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
IOExceptionprotected 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 == '/'
Copyright © 2001–2018 Apache Cayenne. All rights reserved.