Class ToUnknownStream
- All Implemented Interfaces:
DOMSerializer
,ExtendedContentHandler
,ExtendedLexicalHandler
,SerializationHandler
,Serializer
,ContentHandler
,DTDHandler
,ErrorHandler
,DeclHandler
,LexicalHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
To insert ]]> in a CDATA section by ending the last CDATA section with ]] and starting the next CDATA section with >static final String
The constant "]]>"static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Define the XML version.Fields inherited from class org.apache.xml.serializer.SerializerBase
PKG_NAME, PKG_PATH
Fields inherited from interface org.apache.xml.serializer.ExtendedContentHandler
HTML_ATTREMPTY, HTML_ATTRURL, NO_BAD_CHARS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String rawName, String value) Adds an attribute to the currenly open tagvoid
addAttribute
(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute) Adds an attribute to the currenly open tagvoid
addAttributes
(Attributes atts) Add the given attributes to the currently collected ones.void
addUniqueAttribute
(String rawName, String value, int flags) Adds a unique attribute to the currenly open tagReturn aContentHandler
interface into this serializer.Return aDOM3Serializer
interface into this serializer.Return aDOMSerializer
interface into this serializer.void
Pass the call on to the underlying handlervoid
characters
(char[] characters, int offset, int length) Pass the call on to the underlying handlervoid
characters
(String chars) Converts the String to a character array and calls the SAX method characters(char[],int,int);void
close()
Flush and close the underlying java.io.Writer.void
comment
(char[] ch, int start, int length) Pass the call on to the underlying handlervoid
Pass the call on to the underlying handlervoid
elementDecl
(String arg0, String arg1) Pass the call on to the underlying handlervoid
endCDATA()
Pass the call on to the underlying handlervoid
Pass the call on to the underlying handlervoid
endDTD()
Pass the call on to the underlying handlervoid
endElement
(String elementName) Pass the call on to the underlying handlervoid
endElement
(String namespaceURI, String localName, String qName) Pass the call on to the underlying handlervoid
Pass the call on to the underlying handlervoid
endPrefixMapping
(String prefix) Pass the call on to the underlying handlervoid
entityReference
(String entityName) Entity reference event.void
externalEntityDecl
(String name, String publicId, String systemId) Pass the call on to the underlying handlervoid
A SerializationHandler accepts SAX-like events, so it can accumulate attributes or namespace nodes after a startElement().Pass the call on to the underlying handlerPass the call on to the underlying handlerPass the call on to the underlying handlerboolean
Pass the call on to the underlying handlerint
Pass the call on to the underlying handlerPass the call on to the underlying handlerGet the current namespace mappings.getNamespaceURI
(String qname, boolean isElement) Returns the URI of an element or attribute.getNamespaceURIFromPrefix
(String prefix) Returns the URI of prefix (if any)boolean
Pass the call on to the underlying handlerReturns the output format properties for this serializer.Get the output stream where the events will be serialized to.Returns the prefix currently pointing to the given URI (if any).Pass the call on to the underlying handlerGets the transformer associated with this serializerPass the call on to the underlying handlerGet the character stream where the events will be serialized to.void
ignorableWhitespace
(char[] ch, int start, int length) Pass the call on to the underlying handlervoid
internalEntityDecl
(String arg0, String arg1) Pass the call on to the underlying handlervoid
namespaceAfterStartElement
(String prefix, String uri) This method is used when a prefix/uri namespace mapping is indicated after the element was started with a startElement() and before and endElement().void
processingInstruction
(String target, String data) Pass the call on to the underlying handlerboolean
reset()
passes the call on to the underlying HTML or XML handlervoid
Converts the DOM node to outputvoid
setCdataSectionElements
(Vector URI_and_localNames) void
Set the SAX Content handler that the serializer sends its output to.void
setDoctype
(String system, String pub) Set the value coming from the xsl:output doctype-public and doctype-system stylesheet propertiesvoid
setDoctypePublic
(String doctype) Set the doctype in the underlying XML handler.void
setDoctypeSystem
(String doctype) Set the doctype in the underlying XML handler.void
setDocumentLocator
(Locator locator) Pass the call on to the underlying handlervoid
setEncoding
(String encoding) Pass the call on to the underlying handlerboolean
setEscaping
(boolean escape) Turns special character escaping on/off.void
setIndent
(boolean indent) Pass the call on to the underlying handlervoid
setIndentAmount
(int value) Pass the call on to the underlying handlervoid
setMediaType
(String mediaType) Sets the value coming from the xsl:output media-type stylesheet attribute.void
setOmitXMLDeclaration
(boolean b) Pass the call on to the underlying handlervoid
setOutputFormat
(Properties format) Set the properties of the handlervoid
setOutputStream
(OutputStream output) Sets the output stream to write tovoid
setSourceLocator
(SourceLocator locator) This method is used to set the source locator, which might be used to generated an error message.void
setStandalone
(String standalone) Pass the call on to the underlying handlervoid
Sets the transformer associated with this serializervoid
setVersion
(String version) This method cannot be cached because default is different in HTML and XML (we need more than a boolean).void
Sets the writer to write tovoid
skippedEntity
(String name) Pass the call on to the underlying handlervoid
Pass the call on to the underlying handlervoid
Receive notification of the beginning of a document.void
Pass the call on to the underlying handlervoid
startElement
(String qName) This method is used to notify of the start of an elementvoid
startElement
(String namespaceURI, String localName, String qName) This method is used to notify that an element is starting.void
startElement
(String namespaceURI, String localName, String elementName, Attributes atts) void
startEntity
(String name) Pass the call on to the underlying handlervoid
startPrefixMapping
(String prefix, String uri) boolean
startPrefixMapping
(String prefix, String uri, boolean shouldFlush) This method is used to notify that a prefix maping is to start, which can be for the current element, or for the one to come.Methods inherited from class org.apache.xml.serializer.SerializerBase
addAttribute, addAttributeAlways, addXSLAttribute, characters, documentIsEmpty, error, fatalError, fireEndEntity, getOutputProperty, getOutputPropertyDefault, getOutputPropertyNonDefault, notationDecl, setDTDEntityExpansion, setNamespaceMappings, setOutputProperty, setOutputPropertyDefault, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
CDATA_CONTINUE
To insert ]]> in a CDATA section by ending the last CDATA section with ]] and starting the next CDATA section with >- See Also:
-
CDATA_DELIMITER_CLOSE
The constant "]]>"- See Also:
-
CDATA_DELIMITER_OPEN
- See Also:
-
ENTITY_AMP
- See Also:
-
ENTITY_CRLF
- See Also:
-
ENTITY_GT
- See Also:
-
ENTITY_LT
- See Also:
-
ENTITY_QUOT
- See Also:
-
XML_PREFIX
- See Also:
-
XMLNS_PREFIX
- See Also:
-
XMLNS_URI
- See Also:
-
DEFAULT_SAX_SERIALIZER
-
XMLVERSION11
Define the XML version.- See Also:
-
XMLVERSION10
- See Also:
-
-
Constructor Details
-
ToUnknownStream
public ToUnknownStream()Default constructor. Initially this object wraps an XML Stream object, so _handler is never null. That may change later to an HTML Stream object.
-
-
Method Details
-
asContentHandler
Description copied from class:SerializerBase
Return aContentHandler
interface into this serializer. If the serializer does not support theContentHandler
interface, it should return null.- Specified by:
asContentHandler
in interfaceSerializer
- Overrides:
asContentHandler
in classSerializerBase
- Returns:
- the wrapped XML or HTML handler
- Throws:
IOException
- An I/O exception occured- See Also:
-
close
public void close()Description copied from class:SerializerBase
Flush and close the underlying java.io.Writer. This method applies to ToStream serializers, not ToSAXHandler serializers.- Specified by:
close
in interfaceSerializationHandler
- Overrides:
close
in classSerializerBase
- See Also:
-
getOutputFormat
Description copied from interface:Serializer
Returns the output format properties for this serializer.- Returns:
- the properties of the underlying handler
- See Also:
-
getOutputStream
Description copied from interface:Serializer
Get the output stream where the events will be serialized to.- Returns:
- the OutputStream of the underlying XML or HTML handler
- See Also:
-
getWriter
Description copied from interface:Serializer
Get the character stream where the events will be serialized to.- Returns:
- the Writer of the underlying XML or HTML handler
- See Also:
-
reset
public boolean reset()passes the call on to the underlying HTML or XML handler- Specified by:
reset
in interfaceSerializer
- Overrides:
reset
in classSerializerBase
- Returns:
- ???
- See Also:
-
serialize
Converts the DOM node to output- Parameters:
node
- the DOM node to transform to output- Throws:
IOException
- See Also:
-
setEscaping
Description copied from interface:SerializationHandler
Turns special character escaping on/off. Note that characters will never, even if this option is set to 'true', be escaped within CDATA sections in output XML documents.- Parameters:
escape
- true if escaping is to be set on.- Throws:
SAXException
- See Also:
-
setOutputFormat
Set the properties of the handler- Parameters:
format
- the output properties to set- See Also:
-
setOutputStream
Sets the output stream to write to- Parameters:
output
- the OutputStream to write to- See Also:
-
setWriter
Sets the writer to write to- Parameters:
writer
- the writer to write to- See Also:
-
addAttribute
public void addAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute) throws SAXException Adds an attribute to the currenly open tag- Specified by:
addAttribute
in interfaceExtendedContentHandler
- Overrides:
addAttribute
in classSerializerBase
- Parameters:
uri
- the URI of a namespacelocalName
- the attribute name, without prefixrawName
- the attribute name, with prefix (if any)type
- the type of the attribute, typically "CDATA"value
- the value of the parameterXSLAttribute
- true if this attribute is coming from an xsl:attribute element- Throws:
SAXException
- See Also:
-
addAttribute
Adds an attribute to the currenly open tag- Specified by:
addAttribute
in interfaceExtendedContentHandler
- Overrides:
addAttribute
in classSerializerBase
- Parameters:
rawName
- the attribute name, with prefix (if any)value
- the value of the parameter- See Also:
-
addUniqueAttribute
Adds a unique attribute to the currenly open tag- Parameters:
rawName
- the fully qualified attribute name.value
- the attribute valueflags
- a bitwise flag- Throws:
SAXException
-
characters
Converts the String to a character array and calls the SAX method characters(char[],int,int);- Parameters:
chars
- the character data- Throws:
SAXException
- See Also:
-
endElement
Pass the call on to the underlying handler- Parameters:
elementName
- the fully qualified element name.- Throws:
SAXException
- See Also:
-
startPrefixMapping
- Parameters:
prefix
- The prefix that maps to the URIuri
- The URI for the namespace- Throws:
SAXException
- See Also:
-
namespaceAfterStartElement
This method is used when a prefix/uri namespace mapping is indicated after the element was started with a startElement() and before and endElement(). startPrefixMapping(prefix,uri) would be used before the startElement() call.- Specified by:
namespaceAfterStartElement
in interfaceExtendedContentHandler
- Overrides:
namespaceAfterStartElement
in classSerializerBase
- Parameters:
prefix
- the prefix associated with the given URI.uri
- the URI of the namespace- Throws:
SAXException
- See Also:
-
startPrefixMapping
public boolean startPrefixMapping(String prefix, String uri, boolean shouldFlush) throws SAXException Description copied from interface:ExtendedContentHandler
This method is used to notify that a prefix maping is to start, which can be for the current element, or for the one to come.- Parameters:
prefix
- the prefix that maps to the given URIuri
- the namespace URI of the given prefixshouldFlush
- if true this call is like the SAX startPrefixMapping(prefix,uri) call and the mapping applies to the element to come. If false the mapping applies to the current element.- Returns:
- boolean false if the prefix mapping was already in effect (in other words we are just re-declaring), true if this is a new, never before seen mapping for the element.
- Throws:
SAXException
-
setVersion
This method cannot be cached because default is different in HTML and XML (we need more than a boolean).- Overrides:
setVersion
in classSerializerBase
- Parameters:
version
- the version of the output format.- See Also:
-
startDocument
Description copied from class:SerializerBase
Receive notification of the beginning of a document. This method is never a self generated call, but only called externally.The SAX parser will invoke this method only once, before any other methods in this interface or in DTDHandler (except for setDocumentLocator).
- Specified by:
startDocument
in interfaceContentHandler
- Overrides:
startDocument
in classSerializerBase
- Throws:
SAXException
- Any SAX exception, possibly wrapping another exception.SAXException
- See Also:
-
startElement
Description copied from interface:ExtendedContentHandler
This method is used to notify of the start of an element- Parameters:
qName
- the fully qualified name of the element- Throws:
SAXException
-
startElement
Description copied from interface:ExtendedContentHandler
This method is used to notify that an element is starting. This method is just like the standard SAX methodstartElement(uri,localName,qname,atts)
but without the attributes.- Parameters:
namespaceURI
- the namespace URI of the elementlocalName
- the local name (without prefix) of the elementqName
- the qualified name of the element- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String elementName, Attributes atts) throws SAXException - Throws:
SAXException
-
comment
Pass the call on to the underlying handler- Specified by:
comment
in interfaceExtendedLexicalHandler
- Overrides:
comment
in classSerializerBase
- Parameters:
comment
- the comment, but unlike the SAX comment() method this method takes a String rather than a character array.- Throws:
SAXException
- See Also:
-
getDoctypePublic
Pass the call on to the underlying handler- Overrides:
getDoctypePublic
in classSerializerBase
- Returns:
- the public identifier to be used in the DOCTYPE declaration in the output document.
- See Also:
-
getDoctypeSystem
Pass the call on to the underlying handler- Overrides:
getDoctypeSystem
in classSerializerBase
- Returns:
- the system identifier to be used in the DOCTYPE declaration in the output document.
- See Also:
-
getEncoding
Pass the call on to the underlying handler- Overrides:
getEncoding
in classSerializerBase
- Returns:
- the character encoding to be used in the output document.
- See Also:
-
getIndent
public boolean getIndent()Pass the call on to the underlying handler- Overrides:
getIndent
in classSerializerBase
- Returns:
- true if the output document should be indented to visually indicate its structure.
- See Also:
-
getIndentAmount
public int getIndentAmount()Pass the call on to the underlying handler- Overrides:
getIndentAmount
in classSerializerBase
- Returns:
- the number of spaces to indent for each indentation level.
- See Also:
-
getMediaType
Pass the call on to the underlying handler- Overrides:
getMediaType
in classSerializerBase
- Returns:
- the mediatype the media-type or MIME type associated with the output document.
- See Also:
-
getOmitXMLDeclaration
public boolean getOmitXMLDeclaration()Pass the call on to the underlying handler- Overrides:
getOmitXMLDeclaration
in classSerializerBase
- Returns:
- true if the XML declaration is to be omitted from the output document.
- See Also:
-
getStandalone
Pass the call on to the underlying handler- Overrides:
getStandalone
in classSerializerBase
- Returns:
- a value of "yes" if the
standalone
delaration is to be included in the output document. - See Also:
-
getVersion
Pass the call on to the underlying handler- Overrides:
getVersion
in classSerializerBase
- Returns:
- the version of the output format.
- See Also:
-
setDoctype
Description copied from class:SerializerBase
Set the value coming from the xsl:output doctype-public and doctype-system stylesheet properties- Overrides:
setDoctype
in classSerializerBase
- Parameters:
system
- the system identifier to be used in the DOCTYPE declaration in the output document.pub
- the public identifier to be used in the DOCTYPE declaration in the output document.- See Also:
-
setDoctypePublic
Set the doctype in the underlying XML handler. Remember that this method was called, just in case we need to transfer this doctype to an HTML handler- Overrides:
setDoctypePublic
in classSerializerBase
- Parameters:
doctype
- the public doctype to set- See Also:
-
setDoctypeSystem
Set the doctype in the underlying XML handler. Remember that this method was called, just in case we need to transfer this doctype to an HTML handler- Overrides:
setDoctypeSystem
in classSerializerBase
- Parameters:
doctype
- the system doctype to set- See Also:
-
setEncoding
Pass the call on to the underlying handler- Overrides:
setEncoding
in classSerializerBase
- See Also:
-
setIndent
public void setIndent(boolean indent) Pass the call on to the underlying handler- Overrides:
setIndent
in classSerializerBase
- Parameters:
indent
- true if the output document should be indented to visually indicate its structure.- See Also:
-
setIndentAmount
public void setIndentAmount(int value) Pass the call on to the underlying handler- Specified by:
setIndentAmount
in interfaceSerializationHandler
- Overrides:
setIndentAmount
in classSerializerBase
- Parameters:
value
- The m_indentAmount to set
-
setMediaType
Description copied from class:SerializerBase
Sets the value coming from the xsl:output media-type stylesheet attribute.- Overrides:
setMediaType
in classSerializerBase
- Parameters:
mediaType
- the non-null media-type or MIME type associated with the output document.- See Also:
-
setOmitXMLDeclaration
public void setOmitXMLDeclaration(boolean b) Pass the call on to the underlying handler- Overrides:
setOmitXMLDeclaration
in classSerializerBase
- Parameters:
b
- true if the XML declaration is to be omitted from the output document.- See Also:
-
setStandalone
Pass the call on to the underlying handler- Overrides:
setStandalone
in classSerializerBase
- Parameters:
standalone
- a value of "yes" indicates that thestandalone
delaration is to be included in the output document. This method remembers if the value was explicitly set using this method, verses if the value is the default value.- See Also:
-
attributeDecl
public void attributeDecl(String arg0, String arg1, String arg2, String arg3, String arg4) throws SAXException Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
elementDecl
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
externalEntityDecl
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
internalEntityDecl
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
characters
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
endDocument
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
endElement
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
endPrefixMapping
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
ignorableWhitespace
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
processingInstruction
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
setDocumentLocator
Pass the call on to the underlying handler- Specified by:
setDocumentLocator
in interfaceContentHandler
- Overrides:
setDocumentLocator
in classSerializerBase
- Parameters:
locator
- An object that can return the location of any SAX document event. Receive an object for locating the origin of SAX document events.SAX parsers are strongly encouraged (though not absolutely required) to supply a locator: if it does so, it must supply the locator to the application by invoking this method before invoking any of the other methods in the DocumentHandler interface.
The locator allows the application to determine the end position of any document-related event, even if the parser is not reporting an error. Typically, the application will use this information for reporting its own errors (such as character content that does not match an application's business rules). The information returned by the locator is probably not sufficient for use with a search engine.
Note that the locator will return correct information only during the invocation of the events in this interface. The application should not attempt to use it at any other time.
- See Also:
-
skippedEntity
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
comment
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
endCDATA
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
endDTD
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
endEntity
Pass the call on to the underlying handler- Specified by:
endEntity
in interfaceLexicalHandler
- Overrides:
endEntity
in classSerializerBase
- Parameters:
name
- The name of the entity that is ending.- Throws:
SAXException
- The application may raise an exception.- See Also:
-
startCDATA
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
startDTD
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
startEntity
Pass the call on to the underlying handler- Throws:
SAXException
- See Also:
-
asDOMSerializer
Description copied from class:SerializerBase
Return aDOMSerializer
interface into this serializer. If the serializer does not support theDOMSerializer
interface, it should return null.- Specified by:
asDOMSerializer
in interfaceSerializer
- Overrides:
asDOMSerializer
in classSerializerBase
- Returns:
- A
DOMSerializer
interface into this serializer, or null if the serializer is not DOM capable - Throws:
IOException
- An I/O exception occured- See Also:
-
setCdataSectionElements
- Parameters:
URI_and_localNames
- Vector a list of pairs of URI/localName specified in the cdata-section-elements attribute.- See Also:
-
addAttributes
Description copied from class:SerializerBase
Add the given attributes to the currently collected ones. These attributes are always added, regardless of whether on not an element is currently open.- Specified by:
addAttributes
in interfaceExtendedContentHandler
- Overrides:
addAttributes
in classSerializerBase
- Parameters:
atts
- List of attributes to add to this list- Throws:
SAXException
- See Also:
-
getNamespaceMappings
Get the current namespace mappings. Simply returns the mappings of the wrapped handler.- Specified by:
getNamespaceMappings
in interfaceExtendedContentHandler
- Overrides:
getNamespaceMappings
in classSerializerBase
- Returns:
- the current namespace mappings (prefix/uri)
- See Also:
-
flushPending
Description copied from interface:SerializationHandler
A SerializationHandler accepts SAX-like events, so it can accumulate attributes or namespace nodes after a startElement().If the SerializationHandler has a Writer or OutputStream, a call to this method will flush such accumulated events as a closed start tag for an element.
If the SerializationHandler wraps a ContentHandler, a call to this method will flush such accumulated events as a SAX (not SAX-like) calls to startPrefixMapping() and startElement().
If one calls endDocument() then one need not call this method since a call to endDocument() will do what this method does. However, in some circumstances, such as with document fragments, endDocument() is not called and it may be necessary to call this method to flush any pending events.
For performance reasons this method should not be called very often.
- Throws:
SAXException
- See Also:
-
getPrefix
Description copied from class:SerializerBase
Returns the prefix currently pointing to the given URI (if any).- Specified by:
getPrefix
in interfaceExtendedContentHandler
- Overrides:
getPrefix
in classSerializerBase
- Parameters:
namespaceURI
- the uri of the namespace in question- Returns:
- a prefix pointing to the given URI (if any).
- See Also:
-
entityReference
Description copied from class:SerializerBase
Entity reference event.- Specified by:
entityReference
in interfaceExtendedContentHandler
- Overrides:
entityReference
in classSerializerBase
- Parameters:
entityName
- Name of entity- Throws:
SAXException
- See Also:
-
getNamespaceURI
Description copied from class:SerializerBase
Returns the URI of an element or attribute. Note that default namespaces do not apply directly to attributes.- Specified by:
getNamespaceURI
in interfaceExtendedContentHandler
- Overrides:
getNamespaceURI
in classSerializerBase
- Parameters:
qname
- a qualified nameisElement
- true if the qualified name is the name of an element.- Returns:
- returns the namespace URI associated with the qualified name.
- See Also:
-
getNamespaceURIFromPrefix
Description copied from class:SerializerBase
Returns the URI of prefix (if any)- Specified by:
getNamespaceURIFromPrefix
in interfaceExtendedContentHandler
- Overrides:
getNamespaceURIFromPrefix
in classSerializerBase
- Parameters:
prefix
- the prefix whose URI is searched for- Returns:
- the namespace URI currently associated with the prefix, null if the prefix is undefined.
-
setTransformer
Description copied from class:SerializerBase
Sets the transformer associated with this serializer- Specified by:
setTransformer
in interfaceSerializationHandler
- Overrides:
setTransformer
in classSerializerBase
- Parameters:
t
- the transformer associated with this serializer.- See Also:
-
getTransformer
Description copied from class:SerializerBase
Gets the transformer associated with this serializer- Specified by:
getTransformer
in interfaceSerializationHandler
- Overrides:
getTransformer
in classSerializerBase
- Returns:
- returns the transformer associated with this serializer.
- See Also:
-
setContentHandler
Description copied from interface:SerializationHandler
Set the SAX Content handler that the serializer sends its output to. This method only applies to a ToSAXHandler, not to a ToStream serializer.- See Also:
-
setSourceLocator
This method is used to set the source locator, which might be used to generated an error message.- Specified by:
setSourceLocator
in interfaceExtendedContentHandler
- Overrides:
setSourceLocator
in classSerializerBase
- Parameters:
locator
- the source locator- See Also:
-
asDOM3Serializer
Description copied from class:SerializerBase
Return aDOM3Serializer
interface into this serializer. If the serializer does not support theDOM3Serializer
interface, it should return null.- Specified by:
asDOM3Serializer
in interfaceSerializer
- Overrides:
asDOM3Serializer
in classSerializerBase
- Returns:
- A
DOM3Serializer
interface into this serializer, or null if the serializer is not DOM capable - Throws:
IOException
- An I/O exception occured- See Also:
-