|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cabo.share.xml.TreeBuilder
Class responsible for building a tree of objects from an XML stack. TreeBuilders are thread safe, and so can be used from multiple threads simultaneously.
Constructor Summary | |
TreeBuilder()
Creates a TreeBuilder with no ParserManager or root class. |
|
TreeBuilder(ParserManager manager,
java.lang.Class rootClass)
Creates a TreeBuilder using a given ParserManager. |
Method Summary | |
java.lang.Object |
parse(XMLProvider provider,
org.xml.sax.InputSource source,
ErrorLog log)
Parses the document. |
java.lang.Object |
parse(XMLProvider provider,
org.xml.sax.InputSource source,
ParseContext context)
Parses the document. |
java.lang.Object |
parse(XMLProvider provider,
org.xml.sax.InputSource source,
ParseContext context,
NodeParser rootParser)
Parses the document. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TreeBuilder()
ParseContext.getParser()
.public TreeBuilder(ParserManager manager, java.lang.Class rootClass)
manager
- the ParserManager to userootClass
- the desired type of object to return as the rootMethod Detail |
public java.lang.Object parse(XMLProvider provider, org.xml.sax.InputSource source, ErrorLog log) throws java.io.IOException, org.xml.sax.SAXException
provider
- an implementation of the XMLProvider interfacesource
- a SAX input sourcelog
- an error log for recording errorspublic java.lang.Object parse(XMLProvider provider, org.xml.sax.InputSource source, ParseContext context) throws java.io.IOException, org.xml.sax.SAXException
provider
- an implementation of the XMLProvider interfacesource
- a SAX input sourcecontext
- a parsing contextpublic java.lang.Object parse(XMLProvider provider, org.xml.sax.InputSource source, ParseContext context, NodeParser rootParser) throws java.io.IOException, org.xml.sax.SAXException
provider
- an implementation of the XMLProvider interfacesource
- a SAX input sourcecontext
- a parsing contextrootParser
- the root parser to start with; if null,
a root parser will be derived based on the rootClass
requested in the constructor.
|
Oracle UIX API Reference Release 2.1.22.0.0 B12196-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |