public class StreamingTransformerImpl extends AbstractTransformerImpl
com.saxonica.config.StreamingTransformerFactory, and
the effect is that the transform(Source, Result) method accepts a StreamSource
or SAXSource and processes it in streaming mode, assuming that the initial mode is labelled
with streamable="yes". The global context item in such a transformation will
be absent, so referring to "." within a global variable is an error.| Modifier and Type | Class and Description |
|---|---|
class |
StreamingTransformerImpl.StreamingTransformerHandler |
| Modifier | Constructor and Description |
|---|---|
protected |
StreamingTransformerImpl(XsltExecutable e,
Xslt30Transformer t) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearParameters()
Clear all parameters set with setParameter.
|
Controller |
getUnderlyingController()
Get the internal Saxon Controller instance that implements this transformation.
|
Xslt30Transformer |
getUnderlyingXsltTransformer()
Get the underlying s9api implementation class wrapped by this JAXP Transformer
|
TransformerHandler |
newTransformerHandler()
Get a TransformerHandler that can be used to run the transformation by feeding in SAX events
|
XMLFilter |
newXMLFilter()
Create a JAXP XMLFilter which allows this transformation to be added to a SAX pipeline
|
protected void |
setConvertedParameter(QName name,
XdmValue value) |
void |
setErrorListener(ErrorListener listener)
Set the error event listener in effect for the transformation.
|
void |
setInitialMode(String name)
Supply an initial mode for a transformation.
|
void |
setURIResolver(URIResolver resolver)
Set an object that will be used to resolve URIs used in
document().
|
void |
transform(Source xmlSource,
Result outputTarget)
Transform the XML
Source to a Result. |
getParameter, getStylesheetOutputProperties, getUnderlyingXsltExecutable, makeDestination, setParametergetConfiguration, getErrorListener, getLocalOutputProperties, getOutputProperties, getOutputProperty, getURIResolver, reportFatalError, reset, setOutputProperties, setOutputPropertyprotected StreamingTransformerImpl(XsltExecutable e, Xslt30Transformer t)
public void transform(Source xmlSource, Result outputTarget) throws XPathException
Transform the XML Source to a Result.
Specific transformation behavior is determined by the settings of the
TransformerFactory in effect when the
Transformer was instantiated and any modifications made to
the Transformer instance.
An empty Source is represented as an empty document
as constructed by DocumentBuilder.newDocument().
The result of transforming an empty Source depends on
the transformation behavior; it is not always an empty
Result.
transform in class IdentityTransformerxmlSource - The XML input to transform.outputTarget - The Result of transforming the
xmlSource.TransformerException - If an unrecoverable error occurs
during the course of the transformation.XPathExceptionprotected void setConvertedParameter(QName name, XdmValue value)
setConvertedParameter in class AbstractTransformerImplpublic void clearParameters()
clearParameters in class AbstractTransformerImplpublic void setURIResolver(URIResolver resolver)
If the resolver argument is null, the URIResolver value will be cleared and the transformer will no longer have a resolver.
setURIResolver in class IdentityTransformerresolver - An object that implements the URIResolver interface,
or null.public void setErrorListener(ErrorListener listener) throws IllegalArgumentException
setErrorListener in class IdentityTransformerlistener - The new error listener.IllegalArgumentException - if listener is null.public void setInitialMode(String name) throws IllegalArgumentException
This is a Saxon extension to the JAXP interface, needed for XSLT 2.0
name - the name of the initial mode, in Clark notation (either a local name,
or "{uri}local")IllegalArgumentException - if the argument is invalid, for example if the
format of the name is incorrect or if there is no mode with this namepublic Xslt30Transformer getUnderlyingXsltTransformer()
public Controller getUnderlyingController()
getUnderlyingController in class AbstractTransformerImplpublic XMLFilter newXMLFilter()
newXMLFilter in class AbstractTransformerImplpublic TransformerHandler newTransformerHandler() throws XPathException
XPathException