|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.plist.io.PropertyListWriter
public abstract class PropertyListWriter
Serializes a tree consisting of NSObject
s to a property list.
Nested Class Summary | |
---|---|
static class |
PropertyListWriter.Format
Consists of possible output formats |
Field Summary | |
---|---|
static PropertyListWriter.Format |
defaultFormat
The format used when write(NSObject, File) is called |
protected NSObject |
root
The root object of the tree |
Constructor Summary | |
---|---|
PropertyListWriter(NSObject root)
Construct a new PropertyListWriter |
Method Summary | |
---|---|
static void |
write(NSObject root,
File file)
Convert a tree to a property list and write it to a stream |
static void |
write(NSObject root,
File file,
PropertyListWriter.Format format)
Convert a tree to a property list and write it to a file |
static void |
write(NSObject root,
OutputStream stream,
PropertyListWriter.Format format)
Convert a tree to a property list and write it to a stream |
abstract void |
write(OutputStream stream)
Write the property list to a stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static PropertyListWriter.Format defaultFormat
write(NSObject, File)
is called
protected final NSObject root
Constructor Detail |
---|
public PropertyListWriter(NSObject root)
root
- the root of the treeMethod Detail |
---|
public abstract void write(OutputStream stream) throws PropertyListException, IOException
stream
- the stream to write the property list to
PropertyListException
- when generating the property list fails
IOException
- when writing to the stream failspublic static void write(NSObject root, OutputStream stream, PropertyListWriter.Format format) throws PropertyListException, ParserConfigurationException, IOException
root
- the root of the treestream
- the stream to write the property list toformat
- the format to use when writing
PropertyListException
- when generating the property list fails
ParserConfigurationException
- when unable to create an XML document
IOException
- when writing to the stream failspublic static void write(NSObject root, File file) throws PropertyListException, ParserConfigurationException, IOException
PropertyListException
ParserConfigurationException
IOException
write(NSObject, OutputStream, Format)
public static void write(NSObject root, File file, PropertyListWriter.Format format) throws PropertyListException, ParserConfigurationException, IOException
root
- the root of the treefile
- the file to write toformat
- the format to use when writing
PropertyListException
- when generating the property list fails
ParserConfigurationException
- when unable to create an XML document
IOException
- when writing to the stream fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |