Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua.util
Class BinaryPListParser

java.lang.Object
  extended by ch.randelshofer.quaqua.util.BinaryPListParser

public class BinaryPListParser
extends java.lang.Object

Reads a binary PList file and returns it as a NanoXML XMLElement.

The NanoXML XMLElement returned by this reader is equivalent to the XMLElement returned, if a PList file in XML format is parsed with NanoXML.

Description about property list taken from Apple's online documentation:

"A property list is a data representation used by Mac OS X Cocoa and Core Foundation as a convenient way to store, organize, and access standard object types. Frequently called a plist, a property list is an object of one of several certain Cocoa or Core Foundation types, including arrays, dictionaries, strings, binary data, numbers, dates, and Boolean values. If the object is a container (an array or dictionary), all objects contained within it must also be supported property list objects. (Arrays and dictionaries can contain objects not supported by the architecture, but are then not property lists, and cannot be saved and restored with the various property list methods.)"

Version:
$Id: BinaryPListParser.java 381 2011-02-18 11:02:56Z wrandelshofer $
Author:
Werner Randelshofer
See Also:
XMLElement

Constructor Summary
BinaryPListParser()
          Creates a new instance.
 
Method Summary
 XMLElement parse(java.io.File file)
          Parses a binary PList file and turns it into a XMLElement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryPListParser

public BinaryPListParser()
Creates a new instance.

Method Detail

parse

public XMLElement parse(java.io.File file)
                 throws java.io.IOException
Parses a binary PList file and turns it into a XMLElement. The XMLElement is equivalent with a XML PList file parsed using NanoXML.

Parameters:
file - A file containing a binary PList.
Returns:
Returns the parsed XMLElement.
Throws:
java.io.IOException

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.