|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.formats.xml.XmlParser
public class XmlParser
A simplified XML parsing framework.
This is a lightweight wrapper around the org.xml.sax framework. It simplifies some of the method calls, takes care of setup, and handles and logs exceptions.
Copyright 2006 Partner Software, Inc.
| Constructor Summary | |
|---|---|
XmlParser(java.io.Reader input,
XmlActor actor)
Create a new XMLParser with the given input and actor. |
|
XmlParser(java.lang.String context,
java.io.Reader input,
XmlActor actor)
Create a new XMLParser with the given context (generally a file path), input and actor. |
|
XmlParser(VfsFile file,
XmlActor actor)
Create a new XMLParser with the given VfsFile and actor. |
|
| Method Summary | |
|---|---|
void |
addFeature(java.lang.String name,
boolean value)
|
void |
addProperty(java.lang.String name,
java.lang.String value)
|
Naming<java.lang.String> |
getFeatures()
|
boolean |
getSucceeded()
Returns true if the last parse() was successful, and false otherwise (e.g. |
boolean |
isValidating()
|
boolean |
isValidatingAgainstSchema()
|
boolean |
parse()
Parse through the XML file. |
void |
setFeatures(Naming<java.lang.String> features)
|
void |
setValidating(boolean validating)
|
void |
setValidatingAgainstSchema(boolean validatingAgainstSchema)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlParser(java.lang.String context,
java.io.Reader input,
XmlActor actor)
public XmlParser(java.io.Reader input,
XmlActor actor)
public XmlParser(VfsFile file,
XmlActor actor)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public boolean parse()
throws java.io.IOException
java.io.IOException
public void addProperty(java.lang.String name,
java.lang.String value)
public void addFeature(java.lang.String name,
boolean value)
public boolean isValidating()
public void setValidating(boolean validating)
public boolean isValidatingAgainstSchema()
public void setValidatingAgainstSchema(boolean validatingAgainstSchema)
public Naming<java.lang.String> getFeatures()
public void setFeatures(Naming<java.lang.String> features)
public boolean getSucceeded()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||