|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jclark.xsl.sax2.XMLProcessorImpl
public class XMLProcessorImpl
Builds an object model from a SAX event stream
Constructor Summary | |
---|---|
XMLProcessorImpl()
|
|
XMLProcessorImpl(org.xml.sax.XMLReader reader)
construct with a SAX2 XML Reader we may wish to re-use for resolving e.g xsl:include |
Method Summary | |
---|---|
static SAXTwoOMBuilder |
createBuilder(java.lang.String systemId,
int documentIndex,
LoadContext context,
NameTable nameTable)
|
Result |
createResult(Node baseNode,
int documentIndex,
LoadContext loadContext,
Node[] rootNode)
|
SAXTwoOMBuilder |
getConfiguredOMBuilder(java.lang.String systemId,
int documentIndex,
LoadContext context,
NameTable nameTable)
|
Node |
load(org.xml.sax.InputSource source,
int documentIndex,
LoadContext context,
NameTable nameTable)
parse the xml stream at source building an
object model of all its nodes |
Node |
load(java.net.URL url,
int documentIndex,
LoadContext context,
NameTable nameTable)
construct an object model from the XML source at the given URL. |
void |
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
|
void |
setXMLReader(org.xml.sax.XMLReader reader)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLProcessorImpl()
public XMLProcessorImpl(org.xml.sax.XMLReader reader)
Method Detail |
---|
public void setXMLReader(org.xml.sax.XMLReader reader)
public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
setErrorHandler
in interface XMLProcessorEx
public Node load(org.xml.sax.InputSource source, int documentIndex, LoadContext context, NameTable nameTable) throws java.io.IOException, XSLException
source
building an
object model of all its nodes
load
in interface XMLProcessorEx
source
- the input to our parserdocumentIndex
- so we can distinguish between nodes in different docscontext
- ??nameTable
- we intern names to avoid wasting menmory
java.io.IOException
XSLException
public Node load(java.net.URL url, int documentIndex, LoadContext context, NameTable nameTable) throws java.io.IOException, XSLException
XMLProcessor
load
in interface XMLProcessor
url
- the source XMLdocumentIndex
- an internal identifier for this documentnameTable
- initial set of in-scope namespace bindings
java.io.IOException
XSLException
public SAXTwoOMBuilder getConfiguredOMBuilder(java.lang.String systemId, int documentIndex, LoadContext context, NameTable nameTable)
getConfiguredOMBuilder
in interface XMLProcessorEx
public static SAXTwoOMBuilder createBuilder(java.lang.String systemId, int documentIndex, LoadContext context, NameTable nameTable)
public Result createResult(Node baseNode, int documentIndex, LoadContext loadContext, Node[] rootNode) throws XSLException
createResult
in interface XMLProcessor
XSLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |