|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.plist.io.PropertyListParser
net.sf.plist.io.domxml.DOMXMLParser
public final class DOMXMLParser
Parses XML property list files to a tree consisting of NSObject
s
Field Summary | |
---|---|
protected DocumentBuilder |
db
The DocumentBuilder |
protected static DocumentBuilderFactory |
dbf
The DocumentBuilderFactory |
protected Document |
doc
The XML document |
static String |
DTD
DTD obtained from http://www.apple.com/DTDs/PropertyList-1.0.dtd, with comments removed |
Fields inherited from class net.sf.plist.io.PropertyListParser |
---|
file, input |
Constructor Summary | |
---|---|
DOMXMLParser(File file)
|
|
DOMXMLParser(InputStream input)
|
Method Summary | |
---|---|
NSObject |
parse()
Parse the property list to a tree |
protected static NSArray |
parseArray(Node node)
Convert a node to an NSArray |
protected static NSBoolean |
parseBoolean(Node node)
Convert a node to an NSDictionary |
protected static NSData |
parseData(Node node)
Convert a node to an NSDictionary |
protected static NSDate |
parseDate(Node node)
Convert a node to an NSDictionary |
protected static NSDictionary |
parseDictionary(Node node)
Convert a node to an NSDictionary |
protected static String |
parseKey(Node node)
Convert a node to a key |
protected static NSObject |
parseNode(Node node)
Convert a node to an NSObject |
protected static NSNumber |
parseNumber(Node node)
Convert a node to an NSNumber |
protected static NSString |
parseString(Node node)
Convert a node to an NSString |
InputSource |
resolveEntity(String publicId,
String systemId)
|
Methods inherited from class net.sf.plist.io.PropertyListParser |
---|
parse, parse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Document doc
protected static final DocumentBuilderFactory dbf
protected final DocumentBuilder db
public static final String DTD
Constructor Detail |
---|
public DOMXMLParser(File file) throws IOException, PropertyListException
IOException
PropertyListException
PropertyListParser.PropertyListParser(File)
public DOMXMLParser(InputStream input) throws IOException, PropertyListException
IOException
PropertyListException
PropertyListParser.PropertyListParser(InputStream)
Method Detail |
---|
public InputSource resolveEntity(String publicId, String systemId)
resolveEntity
in interface EntityResolver
public NSObject parse() throws PropertyListException
parse
in class PropertyListParser
NSObject
of the parsed property list
PropertyListException
- when parsing the property list failed for some reasonprotected static NSObject parseNode(Node node) throws PropertyListException
node
- the node to parse
PropertyListException
- when parsing failsprotected static NSArray parseArray(Node node) throws PropertyListException
node
- the node to parse
PropertyListException
- when parsing failsprotected static NSDictionary parseDictionary(Node node) throws PropertyListException
node
- the node to parse
PropertyListException
- when parsing failsprotected static NSBoolean parseBoolean(Node node) throws PropertyListException
node
- the node to parse
PropertyListException
- when parsing failsprotected static NSData parseData(Node node) throws PropertyListException
node
- the node to parse
PropertyListException
- when parsing failsprotected static NSDate parseDate(Node node) throws PropertyListException
node
- the node to parse
PropertyListException
- when parsing failsprotected static NSNumber parseNumber(Node node) throws PropertyListException
node
- the node to parse
PropertyListException
- when parsing failsprotected static String parseKey(Node node) throws PropertyListException
node
- the node to parse
PropertyListException
- when parsing failsprotected static NSString parseString(Node node)
node
- the node to parse
PropertyListException
- when parsing fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |