|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidadinternal.share.xml.TreeBuilder
public class 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 | |
|---|---|
org.xml.sax.EntityResolver |
getEntityResolver()
|
java.lang.Object |
parse(org.xml.sax.InputSource source,
NodeParser rootParser)
|
java.lang.Object |
parse(XMLProvider provider,
org.xml.sax.InputSource source)
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. |
void |
setEntityResolver(org.xml.sax.EntityResolver resolver)
|
| 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 root| Method Detail |
|---|
public void setEntityResolver(org.xml.sax.EntityResolver resolver)
public org.xml.sax.EntityResolver getEntityResolver()
public java.lang.Object parse(XMLProvider provider,
org.xml.sax.InputSource source)
throws java.io.IOException,
org.xml.sax.SAXException
provider - an implementation of the XMLProvider interfacesource - a SAX input source
java.io.IOException
org.xml.sax.SAXException
public 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 context
java.io.IOException
org.xml.sax.SAXException
public java.lang.Object parse(org.xml.sax.InputSource source,
NodeParser rootParser)
throws java.io.IOException,
org.xml.sax.SAXException
java.io.IOException
org.xml.sax.SAXException
public 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.
java.io.IOException
org.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||