net.sf.saxon.event
public class SerializerFactory extends Object implements Serializable
Constructor Summary | |
---|---|
SerializerFactory()
Create a SerializerFactory |
Method Summary | |
---|---|
protected Receiver | createHTMLSerializer(Emitter emitter, Properties props, PipelineConfiguration pipe, CharacterMapExpander characterMapExpander, ProxyReceiver normalizer)
Create a serialization pipeline to implement the HTML output method. |
protected Receiver | createTextSerializer(Emitter emitter, Properties props, PipelineConfiguration pipe, CharacterMapExpander characterMapExpander, ProxyReceiver normalizer)
Create a serialization pipeline to implement the text output method. |
protected Receiver | createUserDefinedOutputMethod(String method, Properties props, PipelineConfiguration pipe)
Create a serialization pipeline to implement a user-defined output method. |
protected Receiver | createXHTMLSerializer(Emitter emitter, Properties props, PipelineConfiguration pipe, CharacterMapExpander characterMapExpander, ProxyReceiver normalizer)
Create a serialization pipeline to implement the XHTML output method. |
protected Receiver | createXMLSerializer(Emitter emitter, Properties props, PipelineConfiguration pipe, CharacterMapExpander characterMapExpander, ProxyReceiver normalizer)
Create a serialization pipeline to implement the XML output method. |
Receiver | getReceiver(Result result, PipelineConfiguration pipe, Properties props)
Get a Receiver that wraps a given Result object. |
protected ProxyReceiver | newCDATAFilter(PipelineConfiguration pipe, Properties outputProperties)
Create a new CDATA Filter, responsible for insertion of CDATA sections where required.
|
CharacterMapExpander | newCharacterMapExpander()
Create a new CharacterMapExpander. |
protected ContentHandlerProxy | newContentHandlerProxy()
Create a ContentHandlerProxy. |
protected Emitter | newHTMLEmitter()
Create a new HTML Emitter. |
protected ProxyReceiver | newHTMLIndenter(PipelineConfiguration pipe, Properties outputProperties)
Create a new HTML Indenter. |
protected MetaTagAdjuster | newHTMLMetaTagAdjuster(PipelineConfiguration pipe, Properties outputProperties)
Create a new XHTML MetaTagAdjuster, responsible for insertion, removal, or replacement of meta
elements. |
protected ProxyReceiver | newHTMLURIEscaper(PipelineConfiguration pipe, Properties outputProperties)
Create a new HTML URI Escaper, responsible for percent-encoding of URIs in
HTML output documents. |
protected Emitter | newTEXTEmitter()
Create a new Text Emitter. |
protected UncommittedSerializer | newUncommittedSerializer(Result result, Properties properties)
Create an UncommittedSerializer. |
protected ProxyReceiver | newUnicodeNormalizer(PipelineConfiguration pipe, Properties outputProperties)
Create a Unicode Normalizer. |
protected Emitter | newXHTMLEmitter()
Create a new XHTML Emitter. |
protected ProxyReceiver | newXHTMLIndenter(PipelineConfiguration pipe, Properties outputProperties)
Create a new XHTML Indenter. |
protected MetaTagAdjuster | newXHTMLMetaTagAdjuster(PipelineConfiguration pipe, Properties outputProperties)
Create a new XHTML MetaTagAdjuster, responsible for insertion, removal, or replacement of meta
elements. |
protected ProxyReceiver | newXML10ContentChecker(PipelineConfiguration pipe, Properties outputProperties)
Create a new XML 1.0 content checker, responsible for checking that the output conforms to
XML 1.0 rules (this is used only if the Configuration supports XML 1.1 but the specific output
file requires XML 1.0). |
protected Emitter | newXMLEmitter()
Create a new XML Emitter. |
protected ProxyReceiver | newXMLIndenter(PipelineConfiguration pipe, Properties outputProperties)
Create a new XML Indenter. |
Parameters: emitter the emitter at the end of the pipeline (created using the method SerializerFactory props the serialization properties pipe the pipeline configuration information characterMapExpander the filter to be used for expanding character maps defined in the stylesheet normalizer the filter used for Unicode normalization
Returns: a Receiver acting as the entry point to the serialization pipeline
Throws: XPathException if a failure occurs
Parameters: emitter the emitter at the end of the pipeline (created using the method SerializerFactory props the serialization properties pipe the pipeline configuration information characterMapExpander the filter to be used for expanding character maps defined in the stylesheet normalizer the filter used for Unicode normalization
Returns: a Receiver acting as the entry point to the serialization pipeline
Throws: XPathException if a failure occurs
Parameters: method the name of the user-defined output method, as a QName in Clark format (that is "{uri}local"). props the serialization properties pipe the pipeline configuration information
Returns: a Receiver acting as the entry point to the serialization pipeline
Throws: XPathException if a failure occurs
Parameters: emitter the emitter at the end of the pipeline (created using the method SerializerFactory props the serialization properties pipe the pipeline configuration information characterMapExpander the filter to be used for expanding character maps defined in the stylesheet normalizer the filter used for Unicode normalization
Returns: a Receiver acting as the entry point to the serialization pipeline
Throws: XPathException if a failure occurs
Parameters: emitter the emitter at the end of the pipeline (created using the method SerializerFactory props the serialization properties pipe the pipeline configuration information characterMapExpander the filter to be used for expanding character maps defined in the stylesheet normalizer the filter used for Unicode normalization
Returns: a Receiver acting as the entry point to the serialization pipeline
Throws: XPathException if a failure occurs
Note that this method ignores the WRAP output property. If wrapped output is required, the user must create a SequenceWrapper directly.
Parameters: result The final destination of the serialized output. Usually a StreamResult, but other kinds of Result are possible. pipe The PipelineConfiguration. props The serialization properties
Returns: the newly constructed Receiver that performs the required serialization
Parameters: pipe the pipeline configuration outputProperties the serialization parameters
Returns: the newly created CDATA filter.
Returns: the newly created CharacterMapExpander.
Returns: the newly created ContentHandlerProxy.
Returns: the newly created HTML emitter.
Parameters: pipe the pipeline configuration outputProperties the serialization parameters
Returns: the newly created HTML indenter.
Parameters: pipe the pipeline configuration outputProperties the serialization parameters
Returns: the newly created HTML MetaTagAdjuster.
Parameters: pipe the pipeline configuration outputProperties the serialization parameters
Returns: the newly created HTML URI escaper.
Returns: the newly created text emitter.
Parameters: result the result destination properties the serialization properties
Returns: the newly created UncommittedSerializer.
Parameters: pipe the pipeline configuration outputProperties the serialization parameters
Returns: the newly created Unicode normalizer.
Returns: the newly created XHTML emitter.
Parameters: pipe the pipeline configuration outputProperties the serialization parameters
Returns: the newly created XHTML indenter.
Parameters: pipe the pipeline configuration outputProperties the serialization parameters
Returns: the newly created XHTML MetaTagAdjuster.
Parameters: pipe the pipeline configuration outputProperties the serialization parameters
Returns: the newly created XML 1.0 content checker.
Returns: the newly created XML emitter.
Parameters: pipe the pipeline configuration outputProperties the serialization parameters
Returns: the newly created XML indenter.