public class StreamingTransformerFactory extends EnterpriseTransformerFactory
Constructor and Description |
---|
StreamingTransformerFactory()
Create a StreamingTransformerFactory.
|
StreamingTransformerFactory(EnterpriseConfiguration config)
Construct a StreamingTransformerFactory using an existing Configuration.
|
Modifier and Type | Method and Description |
---|---|
javax.xml.transform.Templates |
newTemplates(javax.xml.transform.Source source)
Process the Source into a Templates object, which is a
a compiled representation of the source.
|
javax.xml.transform.Templates |
newTemplates(javax.xml.transform.Source source,
CompilerInfo info)
Process the Source into a Templates object, which is a
a compiled representation of the source.
|
javax.xml.transform.sax.TransformerHandler |
newTransformerHandler(javax.xml.transform.Templates templates)
Get a TransformerHandler object that can process SAX
ContentHandler events into a Result, based on the Templates argument.
|
void |
setConfiguration(Configuration config)
Set the configuration.
|
addSchema, setAttribute
getAssociatedStylesheet, getAttribute, getConfiguration, getErrorListener, getFeature, getProcessor, getURIResolver, newTemplatesHandler, newTransformer, newTransformer, newTransformerHandler, newTransformerHandler, newXMLFilter, newXMLFilter, setErrorListener, setFeature, setURIResolver
public StreamingTransformerFactory()
public StreamingTransformerFactory(EnterpriseConfiguration config)
config
- the configuration to be used. This must be an EnterpriseConfiguration.public void setConfiguration(Configuration config)
SaxonTransformerFactory
FeatureKeys.CONFIGURATION
setConfiguration
in class SaxonTransformerFactory
config
- the Saxon configurationpublic javax.xml.transform.Templates newTemplates(javax.xml.transform.Source source) throws javax.xml.transform.TransformerConfigurationException
SaxonTransformerFactory
newTemplates
in class SaxonTransformerFactory
source
- An object that holds a URL, input stream, etc.javax.xml.transform.TransformerConfigurationException
- May throw this during the parse when it
is constructing the Templates object and fails.public javax.xml.transform.Templates newTemplates(javax.xml.transform.Source source, CompilerInfo info) throws javax.xml.transform.TransformerConfigurationException
SaxonTransformerFactory
newTemplates
in class SaxonTransformerFactory
source
- An object that holds a URL, input stream, etc.info
- compile-time options for this stylesheet compilationjavax.xml.transform.TransformerConfigurationException
- May throw this during the parse when it
is constructing the Templates object and fails.public javax.xml.transform.sax.TransformerHandler newTransformerHandler(javax.xml.transform.Templates templates) throws javax.xml.transform.TransformerConfigurationException
newTransformerHandler
in class SaxonTransformerFactory
templates
- The compiled transformation instructions.javax.xml.transform.TransformerConfigurationException
- If for some reason the
TransformerHandler can not be created.Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.