|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jclark.xsl.sax.XMLProcessorImpl
parses a source doc or stylesheet into our own DOM like structure
Constructor Summary | |
XMLProcessorImpl(org.xml.sax.Parser parser)
construct with a SAX1 parser we may wish to re-use for resolving e.g xsl:include |
Method Summary | |
Result |
createResult(Node baseNode,
int documentIndex,
LoadContext loadContext,
Node[] rootNode)
|
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XMLProcessorImpl(org.xml.sax.Parser parser)
Method Detail |
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 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 |