Tree PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD com.ibm.portal.resolver.xml
Interface XMLFactory
public interface XMLFactoryInterface that provides access to classes that facilitate the processing of XML related operations.
- Since:
- 6.0.1
Nested Class Summary static class XMLFactory.XSLT_PROCESSOR
Specification of the kind of XSLT processor to be used
Field Summary static java.lang.String ATTR_CLASS
name of the class attribute used for instantiationstatic java.lang.String DEFAULT_EXTENSION_ID
ID of the XLM Factory default extensionstatic java.lang.String EXTENSION_POINT_ID
ID of the XLM Factory extension point
Method Summary org.xml.sax.ContentHandler createContentHandler(XMLStreamHandler handler)
Create a ContentHandler that dispatches to an XMLStreamHandlerDefaultContentHandler createDefaultContentHandler()
Creates a default content handler that can be attached with different target ContentHandler implementationsDefaultContentHandler createDefaultContentHandler(org.xml.sax.ContentHandler aHandler)
Creates a default content handler that can be attached with different target ContentHandler implementations and automatically associates it with a handlerDefaultContentHandler createDefaultContentHandler(ResettableContentHandler aHandler)
Creates a default content handler that can be attached with different target ContentHandler implementations.DocumentTypeDefinition createDocumentTypeDefinition(java.lang.String publicID, java.lang.String systemID)
Parses the specified DTD into a DocumentTypeDefinition structureorg.xml.sax.ContentHandler createHeadContentHandler(javax.portlet.RenderResponse response)
Constructs a ContentHandler that creates head contributions for a portlet.org.xml.sax.XMLReader createHTMLReader()
Constructs an XMLReader that parses HTML content and converts it into XHTML SAX eventsorg.xml.sax.XMLReader createHTMLReader(org.xml.sax.ContentHandler handler)
Constructs an XMLReader that parses HTML content and converts it into XHTML SAX eventsjavax.xml.transform.sax.SAXTransformerFactory createSAXTransformerFactory(java.lang.Boolean bForceXSLTC)
Creates a new transformer factory based on the XSLTC flagjavax.xml.transform.Source createSource(XMLProducer aProducer)
Constructs a Source object on top of a XMLProducer.StreamContentHandler createStreamContentHandler()
Constructs a new StreamContentHandlerStreamContentHandler createStreamContentHandler(boolean bAllowCDATASections)
Constructs a new StreamContentHandlerStreamContentHandler createStreamContentHandler(java.io.OutputStream out)
Constructs a new StreamContentHandlerStreamContentHandler createStreamContentHandler(java.io.OutputStream out, boolean bAllowCDATASections)
Constructs a new StreamContentHandlerStreamContentHandler createStreamContentHandler(java.io.Writer out)
Constructs a new StreamContentHandlerStreamContentHandler createStreamContentHandler(java.io.Writer out, boolean bAllowCDATASections)
Constructs a new StreamContentHandlerjavax.xml.transform.Templates createTemplates()
Creates a template for the identitiy transformationjavax.xml.transform.Templates createTemplates(java.lang.Boolean bForceXSLTC)
Deprecated. use createTemplates(XSLT_PROCESSOR)javax.xml.transform.Templates createTemplates(javax.xml.transform.Source src)
Creates an XSLTC template using the default processorjavax.xml.transform.Templates createTemplates(javax.xml.transform.Source src, java.lang.Boolean bForceXSLTC)
Deprecated. use createTemplates(Source, XSLT_PROCESSOR) insteadjavax.xml.transform.Templates createTemplates(javax.xml.transform.Source src, XMLFactory.XSLT_PROCESSOR type)
Creates an XSLTC templatejavax.xml.transform.Templates createTemplates(XMLFactory.XSLT_PROCESSOR type)
Creates a template for the identitiy transformationjavax.xml.transform.TransformerFactory createTransformerFactory()
Creates a new transformer factory using the default processorjavax.xml.transform.TransformerFactory createTransformerFactory(java.lang.Boolean bForceXSLTC)
Deprecated. use createTransformerFactory(XSLT_PROCESSOR) insteadjavax.xml.transform.TransformerFactory createTransformerFactory(XMLFactory.XSLT_PROCESSOR type)
Creates a new transformer factory based on the processor tyoejavax.xml.transform.sax.TransformerHandler createTransformerHandler(javax.xml.transform.Source aTemplates, java.lang.Boolean bForceXSLTC)
Constructs a handler that transforms SAX events via an XSLTjavax.xml.transform.sax.TransformerHandler createTransformerHandler(javax.xml.transform.Templates aTemplates, java.lang.Boolean bForceXSLTC)
Constructs a handler that transforms SAX events via an XSLTResolverContentHandler createXMLBaseContentHandler()
Creates a content handler that listens to the xml:base attributes and that is able to resolve URLs in the context of these base tags.ResolverContentHandler createXMLBaseContentHandler(org.xml.sax.ContentHandler aDelegate)
Creates a content handler that listens to the xml:base attributes and that is able to resolve URLs in the context of these base tags.ResolverContentHandler createXMLBaseContentHandler(ResettableContentHandler aHandler)
Creates an ContentHandler that keeps track of "xml:base" attributes to compute absolute URLs from relative URLs.ResolverXMLFilter createXMLBaseFilter()
Creates an XMLFilter that keeps track of "xml:base" attributes to compute absolute URLs from relative URLs.ResolverXMLFilter createXMLBaseFilter(org.xml.sax.XMLReader parent)
Creates an XMLFilter that keeps track of "xml:base" attributes to compute absolute URLs from relative URLs.XMLOutputStream createXMLOutputStream()
Creates an XMLOutputStream that can be used to convert a byte stream into ContentHandler callbacks.XMLOutputStream createXMLOutputStream(org.xml.sax.ContentHandler handler)
Creates an XMLOutputStream that can be used to convert a byte stream into ContentHandler callbacks.XMLProducer createXMLProducer(javax.xml.transform.Source aSource)
Construct wrapper that represents a Source as a XMLProducer.org.xml.sax.XMLReader createXMLReader()
Creates an XMLReader object based on the standard SAX factories.org.xml.sax.XMLReader createXMLReader(XMLOutputStream aStream)
Creates an XMLReader object that wraps an XMLOutputStreamXMLRecorder createXMLRecorder()
Creates an object that can record SAX callbacks and that can then playback this sequence to another handler at a later point in tisme.XMLRecorder createXMLRecorder(int bufferSize)
Creates an object that can record SAX callbacks and that can then playback this sequence to another handler at a later point in time.XMLStreamHandler createXMLStreamHandler(java.io.Writer aOut, java.lang.String aMethod)
Constructs a serializer that can produce XML, XHTML or HTML markupXMLWriter createXMLWriter()
Creates an XMLWriter that can be used to convert a character stream into ContentHandler callbacks.XMLWriter createXMLWriter(org.xml.sax.ContentHandler handler)
Creates an XMLWriter that can be used to convert a character stream into ContentHandler callbacks.org.xml.sax.EntityResolver getEntityResolver()
Return an entity resolver that supports entities for HTML XHTML SVG MATHMLjavax.xml.transform.URIResolver getURIResolver()
Return a default URI resolver
Field Detail ATTR_CLASS
static final java.lang.String ATTR_CLASS
- name of the class attribute used for instantiation
- See Also:
- Constant Field Values
DEFAULT_EXTENSION_ID
static final java.lang.String DEFAULT_EXTENSION_ID
- ID of the XLM Factory default extension
- See Also:
- Constant Field Values
EXTENSION_POINT_ID
static final java.lang.String EXTENSION_POINT_ID
- ID of the XLM Factory extension point
- See Also:
- Constant Field Values
Method Detail createContentHandler
org.xml.sax.ContentHandler createContentHandler(XMLStreamHandler handler) throws org.xml.sax.SAXException, java.io.IOException
- Create a ContentHandler that dispatches to an XMLStreamHandler
- Parameters:
- handler - target handler, not null
- Returns:
- the content handler
- Throws:
- org.xml.sax.SAXException
- java.io.IOException
- Since:
- 8.5
createDefaultContentHandler
DefaultContentHandler createDefaultContentHandler() throws org.xml.sax.SAXException
- Creates a default content handler that can be attached with different target ContentHandler implementations
- Returns:
- the default handler
- Throws:
- org.xml.sax.SAXException - - if the handler could not be constructed
createDefaultContentHandler
DefaultContentHandler createDefaultContentHandler(org.xml.sax.ContentHandler aHandler) throws org.xml.sax.SAXException
- Creates a default content handler that can be attached with different target ContentHandler implementations and automatically associates it with a handler
- Parameters:
- aHandler - handler that will directly be connected
- Returns:
- the default handler
- Throws:
- org.xml.sax.SAXException - - if the handler could not be constructed
createDefaultContentHandler
DefaultContentHandler createDefaultContentHandler(ResettableContentHandler aHandler) throws org.xml.sax.SAXException
- Creates a default content handler that can be attached with different target ContentHandler implementations. This handler will be part of the chain defined by the aHandler parameter
- Parameters:
- aHandler - handler that will directly be connected
- Returns:
- the default handler
- Throws:
- org.xml.sax.SAXException - - if the handler could not be constructed
createDocumentTypeDefinition
DocumentTypeDefinition createDocumentTypeDefinition(java.lang.String publicID, java.lang.String systemID) throws org.xml.sax.SAXException, java.io.IOException
- Parses the specified DTD into a DocumentTypeDefinition structure
- Parameters:
- publicID - the publicID
- systemID - the systemID
- Returns:
- the document type definition
- Throws:
- org.xml.sax.SAXException
- java.io.IOException
- Since:
- 8.0
createHeadContentHandler
org.xml.sax.ContentHandler createHeadContentHandler(javax.portlet.RenderResponse response)
- Constructs a ContentHandler that creates head contributions for a portlet. The class is meant to be used in the PortletRequest#RENDER_HEADERS phase of the portlet. We assume that the content starts with a Constants#ELEMENT_HEAD element, this element will be ignored. All valid children of the head element will be added to the response.
- Parameters:
- response - the response during the header phase
- Returns:
- the handler
- Since:
- 8.5
createHTMLReader
org.xml.sax.XMLReader createHTMLReader()
- Constructs an XMLReader that parses HTML content and converts it into XHTML SAX events
- Returns:
- the reader, not null
- Since:
- 7.0
createHTMLReader
org.xml.sax.XMLReader createHTMLReader(org.xml.sax.ContentHandler handler)
- Constructs an XMLReader that parses HTML content and converts it into XHTML SAX events
- Parameters:
- handler - handler to assign to the reader
- Returns:
- the reader, not null
- Since:
- 7.0
createSAXTransformerFactory
javax.xml.transform.sax.SAXTransformerFactory createSAXTransformerFactory(java.lang.Boolean bForceXSLTC) throws javax.xml.transform.TransformerFactoryConfigurationError
- Creates a new transformer factory based on the XSLTC flag
- Parameters:
- bForceXSLTC - the method tries to create the XSLTC version of the transformer template, if set to false it uses the system default. If null it uses the most efficient version that is available in the system automatically
- Returns:
- new TransformerFactory instance, never null (unless an ErrorListener is registered with the TransformerFactory, in which case an exception error sends an error message to the ErrorListener and returns null).
- Throws:
- javax.xml.transform.TransformerFactoryConfigurationError - if the implmentation is not available or cannot be instantiated.
- Since:
- 8.0
createSource
javax.xml.transform.Source createSource(XMLProducer aProducer)
- Constructs a Source object on top of a XMLProducer.
- Parameters:
- aProducer - the producer, not null
- Returns:
- the source
- Since:
- 8.5
createStreamContentHandler
StreamContentHandler createStreamContentHandler() throws org.xml.sax.SAXException
- Constructs a new StreamContentHandler
- Returns:
- the handler
- Throws:
- org.xml.sax.SAXException
createStreamContentHandler
StreamContentHandler createStreamContentHandler(boolean bAllowCDATASections) throws org.xml.sax.SAXException
- Constructs a new StreamContentHandler
- Parameters:
- bAllowCDATASections - flag to indicate if the serialized can produce CDATA sections to escape markup or if it should rather use entity references
- Returns:
- the handler
- Throws:
- org.xml.sax.SAXException
- Since:
- 8.5
createStreamContentHandler
StreamContentHandler createStreamContentHandler(java.io.OutputStream out) throws org.xml.sax.SAXException
- Constructs a new StreamContentHandler
- Returns:
- the handler
- Throws:
- org.xml.sax.SAXException
createStreamContentHandler
StreamContentHandler createStreamContentHandler(java.io.OutputStream out, boolean bAllowCDATASections) throws org.xml.sax.SAXException
- Constructs a new StreamContentHandler
- Parameters:
- out - the writer to serialize to
- bAllowCDATASections - flag to indicate if the serialized can produce CDATA sections to escape markup or if it should rather use entity references
- Returns:
- the handler
- Throws:
- org.xml.sax.SAXException
- Since:
- 8.5
createStreamContentHandler
StreamContentHandler createStreamContentHandler(java.io.Writer out) throws org.xml.sax.SAXException
- Constructs a new StreamContentHandler
- Returns:
- the handler
- Throws:
- org.xml.sax.SAXException
createStreamContentHandler
StreamContentHandler createStreamContentHandler(java.io.Writer out, boolean bAllowCDATASections) throws org.xml.sax.SAXException
- Constructs a new StreamContentHandler
- Parameters:
- out - the stream to serialize to
- bAllowCDATASections - flag to indicate if the serialized can produce CDATA sections to escape markup or if it should rather use entity references
- Returns:
- the handler
- Throws:
- org.xml.sax.SAXException
- Since:
- 8.5
createTemplates
javax.xml.transform.Templates createTemplates() throws javax.xml.transform.TransformerConfigurationException
- Creates a template for the identitiy transformation
- Returns:
- a template that can be used to produce an identity Transformer
- Throws:
- javax.xml.transform.TransformerConfigurationException
- Since:
- 8.0
createTemplates
@Deprecated javax.xml.transform.Templates createTemplates(java.lang.Boolean bForceXSLTC) throws javax.xml.transform.TransformerConfigurationException
- Deprecated. use createTemplates(XSLT_PROCESSOR)
- Creates a template for the identitiy transformation
- Parameters:
- bForceXSLTC - the method tries to create the XSLTC version of the transformer template, if set to false it uses the system default. If null it uses the most efficient version that is available in the system automatically
- Returns:
- a template that can be used to produce an identity Transformer
- Throws:
- javax.xml.transform.TransformerConfigurationException
createTemplates
javax.xml.transform.Templates createTemplates(javax.xml.transform.Source src) throws javax.xml.transform.TransformerConfigurationException
- Creates an XSLTC template using the default processor
- Parameters:
- src - source for the templates
- Returns:
- a template based on the source
- Throws:
- javax.xml.transform.TransformerConfigurationException
- Since:
- 8.0
createTemplates
@Deprecated javax.xml.transform.Templates createTemplates(javax.xml.transform.Source src, java.lang.Boolean bForceXSLTC) throws javax.xml.transform.TransformerConfigurationException
- Deprecated. use createTemplates(Source, XSLT_PROCESSOR) instead
- Creates an XSLTC template
- Parameters:
- src - source for the templates
- bForceXSLTC - the method tries to create the XSLTC version of the transformer template, if set to false it uses the system default. If null it uses the most efficient version that is available in the system automatically
- Returns:
- a template based on the source
- Throws:
- javax.xml.transform.TransformerConfigurationException
createTemplates
javax.xml.transform.Templates createTemplates(javax.xml.transform.Source src, XMLFactory.XSLT_PROCESSOR type) throws javax.xml.transform.TransformerConfigurationException
- Creates an XSLTC template
- Parameters:
- src - source for the templates
- type - type of the processor to be used
- Returns:
- a template based on the source
- Throws:
- javax.xml.transform.TransformerConfigurationException
- Since:
- 8.0
createTemplates
javax.xml.transform.Templates createTemplates(XMLFactory.XSLT_PROCESSOR type) throws javax.xml.transform.TransformerConfigurationException
- Creates a template for the identitiy transformation
- Parameters:
- type - type of the processor to be used
- Returns:
- a template that can be used to produce an identity Transformer
- Throws:
- javax.xml.transform.TransformerConfigurationException
- Since:
- 8.0
createTransformerFactory
javax.xml.transform.TransformerFactory createTransformerFactory() throws javax.xml.transform.TransformerFactoryConfigurationError
- Creates a new transformer factory using the default processor
- Returns:
- new TransformerFactory instance, never null (unless an ErrorListener is registered with the TransformerFactory, in which case an exception error sends an error message to the ErrorListener and returns null).
- Throws:
- javax.xml.transform.TransformerFactoryConfigurationError - if the implmentation is not available or cannot be instantiated.
- Since:
- 8.0
createTransformerFactory
@Deprecated javax.xml.transform.TransformerFactory createTransformerFactory(java.lang.Boolean bForceXSLTC) throws javax.xml.transform.TransformerFactoryConfigurationError
- Deprecated. use createTransformerFactory(XSLT_PROCESSOR) instead
- Creates a new transformer factory based on the XSLTC flag
- Parameters:
- bForceXSLTC - the method tries to create the XSLTC version of the transformer template, if set to false it uses the system default. If null it uses the most efficient version that is available in the system automatically
- Returns:
- new TransformerFactory instance, never null (unless an ErrorListener is registered with the TransformerFactory, in which case an exception error sends an error message to the ErrorListener and returns null).
- Throws:
- javax.xml.transform.TransformerFactoryConfigurationError - if the implmentation is not available or cannot be instantiated.
createTransformerFactory
javax.xml.transform.TransformerFactory createTransformerFactory(XMLFactory.XSLT_PROCESSOR type) throws javax.xml.transform.TransformerFactoryConfigurationError
- Creates a new transformer factory based on the processor tyoe
- Parameters:
- type - type of the processor to be used
- Returns:
- new TransformerFactory instance, never null (unless an ErrorListener is registered with the TransformerFactory, in which case an exception error sends an error message to the ErrorListener and returns null).
- Throws:
- javax.xml.transform.TransformerFactoryConfigurationError - if the implmentation is not available or cannot be instantiated.
- Since:
- 8.0
createTransformerHandler
javax.xml.transform.sax.TransformerHandler createTransformerHandler(javax.xml.transform.Source aTemplates, java.lang.Boolean bForceXSLTC) throws javax.xml.transform.TransformerConfigurationException
- Constructs a handler that transforms SAX events via an XSLT
- Parameters:
- aTemplates - the source for the templates
- bForceXSLTC - the method tries to create the XSLTC version of the transformer template, if set to false it uses the system default. If null it uses the most efficient version that is available in the system automatically
- Returns:
- the handler
- Throws:
- javax.xml.transform.TransformerConfigurationException
- Since:
- 8.0
createTransformerHandler
javax.xml.transform.sax.TransformerHandler createTransformerHandler(javax.xml.transform.Templates aTemplates, java.lang.Boolean bForceXSLTC) throws javax.xml.transform.TransformerConfigurationException
- Constructs a handler that transforms SAX events via an XSLT
- Parameters:
- aTemplates - the templates
- bForceXSLTC - the method tries to create the XSLTC version of the transformer template, if set to false it uses the system default. If null it uses the most efficient version that is available in the system automatically
- Returns:
- the handler
- Throws:
- javax.xml.transform.TransformerConfigurationException
- Since:
- 8.0
createXMLBaseContentHandler
ResolverContentHandler createXMLBaseContentHandler() throws org.xml.sax.SAXException
- Creates a content handler that listens to the xml:base attributes and that is able to resolve URLs in the context of these base tags.
- Returns:
- a resolving handler
- Throws:
- org.xml.sax.SAXException - - if the handler could not be constructed
createXMLBaseContentHandler
ResolverContentHandler createXMLBaseContentHandler(org.xml.sax.ContentHandler aDelegate) throws org.xml.sax.SAXException
- Creates a content handler that listens to the xml:base attributes and that is able to resolve URLs in the context of these base tags. The returned implementation will automatically dispatch to the delegate handler
- Parameters:
- aDelegate - handler to dispatch to
- Returns:
- a resolving handler
- Throws:
- org.xml.sax.SAXException - - if the handler could not be constructed
createXMLBaseContentHandler
ResolverContentHandler createXMLBaseContentHandler(ResettableContentHandler aHandler) throws org.xml.sax.SAXException
- Creates an ContentHandler that keeps track of "xml:base" attributes to compute absolute URLs from relative URLs.
- Parameters:
- aHandler - next element in the handler chain. This next element will receive all SAX events that were initially thrown on the handler
- Returns:
- An instance of a content handler that is initialized with a ResettableContentHandler as the next element in the handler chain
- Throws:
- org.xml.sax.SAXException - - if the handler could not be constructed
createXMLBaseFilter
ResolverXMLFilter createXMLBaseFilter() throws org.xml.sax.SAXException
- Creates an XMLFilter that keeps track of "xml:base" attributes to compute absolute URLs from relative URLs.
- Returns:
- An instance of a ResolverXMLFilter that is associated with a default XMLReader.
- Throws:
- org.xml.sax.SAXException - - if the filter could not be constructed
createXMLBaseFilter
ResolverXMLFilter createXMLBaseFilter(org.xml.sax.XMLReader parent) throws org.xml.sax.SAXException
- Creates an XMLFilter that keeps track of "xml:base" attributes to compute absolute URLs from relative URLs.
- Parameters:
- parent - the XMLReader instance that is used as the basis for the SAX events
- Returns:
- An instance of a ResolverXMLFilter that is associated with the specified XMLReader.
- Throws:
- org.xml.sax.SAXException - - if the filter could not be constructed
createXMLOutputStream
XMLOutputStream createXMLOutputStream() throws org.xml.sax.SAXException
- Creates an XMLOutputStream that can be used to convert a byte stream into ContentHandler callbacks. The stream returned by this call is NOT initialized, make sure to assign a content handler via XMLOutputStream#setContentHandler(ContentHandler) and to initialize the stream for parsing by calling XMLOutputStream#reset().
- Returns:
- An instance of the XMLOutputStream
- Throws:
- org.xml.sax.SAXException - - if the filter could not be constructed
- Since:
- 6.1.0
createXMLOutputStream
XMLOutputStream createXMLOutputStream(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException, java.io.IOException
- Creates an XMLOutputStream that can be used to convert a byte stream into ContentHandler callbacks. The stream is initialized with the given content handler and also ready for parsing.
- Parameters:
- handler - content handler to throw the SAX events to
- Returns:
- An instance of the XMLOutputStream
- Throws:
- org.xml.sax.SAXException - - if the filter could not be constructed
- java.io.IOException
- Since:
- 6.1.0.3
createXMLProducer
XMLProducer createXMLProducer(javax.xml.transform.Source aSource) throws org.xml.sax.SAXException, java.io.IOException
- Construct wrapper that represents a Source as a XMLProducer.
- Parameters:
- aSource - the source, not null
- Returns:
- the producer
- Throws:
- org.xml.sax.SAXException
- java.io.IOException
- Since:
- 8.0.0.1
createXMLReader
org.xml.sax.XMLReader createXMLReader() throws org.xml.sax.SAXException
- Creates an XMLReader object based on the standard SAX factories. The resulting reader is configured for secure xml processing XMLConstants.FEATURE_SECURE_PROCESSING.
- Returns:
- the XMLReader
- Throws:
- org.xml.sax.SAXException
createXMLReader
org.xml.sax.XMLReader createXMLReader(XMLOutputStream aStream) throws org.xml.sax.SAXException
- Creates an XMLReader object that wraps an XMLOutputStream
- Returns:
- the XMLReader
- Throws:
- org.xml.sax.SAXException
createXMLRecorder
XMLRecorder createXMLRecorder() throws java.io.IOException
- Creates an object that can record SAX callbacks and that can then playback this sequence to another handler at a later point in tisme.
- Returns:
- the recorder
- Throws:
- java.io.IOException
- Since:
- 8.0.0.1
createXMLRecorder
XMLRecorder createXMLRecorder(int bufferSize) throws java.io.IOException
- Creates an object that can record SAX callbacks and that can then playback this sequence to another handler at a later point in time.
- Parameters:
- bufferSize - size of the string buffer used for xml characters
- Returns:
- the recorder
- Throws:
- java.io.IOException
- Since:
- 8.0.0.1
createXMLStreamHandler
XMLStreamHandler createXMLStreamHandler(java.io.Writer aOut, java.lang.String aMethod) throws java.io.IOException
- Constructs a serializer that can produce XML, XHTML or HTML markup
- Parameters:
- aOut - target writer, not null
- aMethod - the output method, default is "XML"
- Returns:
- the handler, not null
- Throws:
- java.io.IOException
- Since:
- 8.0
createXMLWriter
XMLWriter createXMLWriter() throws org.xml.sax.SAXException
- Creates an XMLWriter that can be used to convert a character stream into ContentHandler callbacks. The stream returned by this call is NOT initialized, make sure to assign a content handler via XMLOutputStream#setContentHandler(ContentHandler) and to initialize the stream for parsing by calling XMLOutputStream#reset().
- Returns:
- An instance of the XMLWriter
- Throws:
- org.xml.sax.SAXException - - if the filter could not be constructed
- Since:
- 7.0.0
createXMLWriter
XMLWriter createXMLWriter(org.xml.sax.ContentHandler handler) throws org.xml.sax.SAXException, java.io.IOException
- Creates an XMLWriter that can be used to convert a character stream into ContentHandler callbacks. The stream is initialized with the given content handler and also ready for parsing.
- Parameters:
- handler - content handler to throw the SAX events to
- Returns:
- An instance of the XMLWriter
- Throws:
- org.xml.sax.SAXException - - if the filter could not be constructed
- java.io.IOException
- Since:
- 7.0.0
getEntityResolver
org.xml.sax.EntityResolver getEntityResolver()
- Returns an entity resolver that supports entities for
- HTML
- XHTML
- SVG
- MATHML
- Returns:
- the resolver, not null
- Since:
- 7.0
- See Also:
- http://www.w3.org/QA/2002/04/valid-dtd-list.html
getURIResolver
javax.xml.transform.URIResolver getURIResolver()
- Returns a default URI resolver
- Returns:
- the resolver
- Since:
- 8.0
Tree PREV CLASS NEXT CLASS SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD