Class EmptySerializer
- All Implemented Interfaces:
DOMSerializer
,ExtendedContentHandler
,ExtendedLexicalHandler
,SerializationHandler
,Serializer
,ContentHandler
,DTDHandler
,ErrorHandler
,DeclHandler
,LexicalHandler
- Direct Known Subclasses:
SimpleResultTreeImpl
,StringValueHandler
-
Field Summary
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 name, String value) Add an attribute to the current element.void
Add at attribute to the current element, not from an xsl:attribute element.void
addAttribute
(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute) Add at attribute to the current elementvoid
addAttributes
(Attributes atts) Add attributes to the current elementvoid
addUniqueAttribute
(String name, String value, int flags) Add a unique attribute to the current element.void
addXSLAttribute
(String qName, String value, String uri) Add an attribute from an xsl:attribute element.Return aContentHandler
interface to provide SAX input to.Return an Object into this serializer to be cast to a DOM3Serializer.Return aDOMSerializer
interface into this serializer.void
void
characters
(char[] arg0, int arg1, int arg2) void
characters
(String chars) This method is used to notify of a character event, but passing the data as a character String rather than the standard character array.void
characters
(Node node) This method is used to notify of a character event, but passing the data as a DOM Node rather than the standard character array.void
close()
void
comment
(char[] arg0, int arg1, int arg2) void
This method is used to notify of a commentvoid
elementDecl
(String arg0, String arg1) void
endCDATA()
void
void
endDTD()
void
endElement
(String elemName) This method is used to notify that an element has ended.void
endElement
(String arg0, String arg1, String arg2) void
void
endPrefixMapping
(String arg0) void
entityReference
(String entityName) Notify of an entity reference.void
error
(SAXParseException arg0) void
externalEntityDecl
(String arg0, String arg1, String arg2) void
fatalError
(SAXParseException arg0) void
A SerializationHandler accepts SAX-like events, so it can accumulate attributes or namespace nodes after a startElement().boolean
int
This method returns an object that has the current namespace mappings in effect.getNamespaceURI
(String name, boolean isElement) This method gets the prefix associated with a current element or attribute name.getNamespaceURIFromPrefix
(String prefix) This method returns the namespace URI currently associated with the prefix.boolean
Returns the output format properties for this serializer.getOutputProperty
(String name) Get the output stream where the events will be serialized to.This method returns the prefix that currently maps to the given namespace URI.Get the transformer associated with the serializer.Get the character stream where the events will be serialized to.void
ignorableWhitespace
(char[] arg0, int arg1, int arg2) void
internalEntityDecl
(String arg0, String arg1) void
namespaceAfterStartElement
(String uri, String prefix) This method is used to notify that a prefix mapping is to start, but after an element is started.void
notationDecl
(String arg0, String arg1, String arg2) void
processingInstruction
(String arg0, String arg1) boolean
reset()
This method resets the serializer.void
Notify that the serializer should take this DOM node as input to be serialized.void
void
setCdataSectionElements
(Vector URI_and_localNames) void
Set the SAX Content handler that the serializer sends its output to.void
setDoctype
(String system, String pub) void
setDoctypePublic
(String doctype) void
setDoctypeSystem
(String doctype) void
setDocumentLocator
(Locator arg0) void
setDTDEntityExpansion
(boolean expand) Default behavior is to expand DTD entities, that is the initall default value is true.void
setEncoding
(String encoding) boolean
setEscaping
(boolean escape) Turns special character escaping on/off.void
setIndent
(boolean indent) void
setIndentAmount
(int spaces) Set the number of spaces to indent for each indentation level.void
setMediaType
(String mediatype) void
setNamespaceMappings
(NamespaceMappings mappings) Used only by TransformerSnapshotImpl to restore the serialization to a previous state.void
setOmitXMLDeclaration
(boolean b) void
setOutputFormat
(Properties format) Specifies an output format for this serializer.void
setOutputProperty
(String name, String val) void
setOutputPropertyDefault
(String name, String val) void
setOutputStream
(OutputStream output) Specifies an output stream to which the document should be serialized.void
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) void
setTransformer
(Transformer transformer) Set the transformer associated with the serializer.void
setVersion
(String version) void
Specifies a writer to which the document should be serialized.void
skippedEntity
(String arg0) void
void
void
void
startElement
(String qName) This method is used to notify of the start of an elementvoid
startElement
(String uri, String localName, String qName) This method is used to notify that an element is starting.void
startElement
(String arg0, String arg1, String arg2, Attributes arg3) void
startEntity
(String arg0) void
startPrefixMapping
(String arg0, String arg1) 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.void
unparsedEntityDecl
(String arg0, String arg1, String arg2, String arg3) void
warning
(SAXParseException arg0) 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
-
Constructor Details
-
EmptySerializer
public EmptySerializer()
-
-
Method Details
-
asContentHandler
Description copied from interface:Serializer
Return aContentHandler
interface to provide SAX input to. Through the returned object the document to be serailized, as a series of SAX events, can be provided to the serialzier. If the serializer does not support theContentHandler
interface, it will return null.In principle only one of asDOMSerializer() or asContentHander() should be called.
- Specified by:
asContentHandler
in interfaceSerializer
- Returns:
- A
ContentHandler
interface into this serializer, or null if the serializer is not SAX 2 capable - Throws:
IOException
- An I/O exception occured- 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.- Specified by:
setContentHandler
in interfaceSerializationHandler
- See Also:
-
close
public void close()- Specified by:
close
in interfaceSerializationHandler
- See Also:
-
getOutputFormat
Description copied from interface:Serializer
Returns the output format properties for this serializer.- Specified by:
getOutputFormat
in interfaceSerializer
- Returns:
- The output format key/value pairs in use.
- See Also:
-
getOutputStream
Description copied from interface:Serializer
Get the output stream where the events will be serialized to.- Specified by:
getOutputStream
in interfaceSerializer
- Returns:
- reference to the result stream, or null if only a writer was set.
- See Also:
-
getWriter
Description copied from interface:Serializer
Get the character stream where the events will be serialized to.- Specified by:
getWriter
in interfaceSerializer
- Returns:
- Reference to the result Writer, or null.
- See Also:
-
reset
public boolean reset()Description copied from interface:Serializer
This method resets the serializer. If this method returns true, the serializer may be used for subsequent serialization of new documents. It is possible to change the output format and output stream prior to serializing, or to reuse the existing output format and output stream or writer.- Specified by:
reset
in interfaceSerializer
- Returns:
- True if serializer has been reset and can be reused
- See Also:
-
serialize
Description copied from interface:SerializationHandler
Notify that the serializer should take this DOM node as input to be serialized.- Specified by:
serialize
in interfaceDOMSerializer
- Specified by:
serialize
in interfaceSerializationHandler
- Parameters:
node
- the DOM node to be serialized.- Throws:
IOException
- if an I/O exception occured while serializing- See Also:
-
setCdataSectionElements
- See Also:
-
XSLOutputAttributes.setCdataSectionElements(java.util.Vector)
-
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.- Specified by:
setEscaping
in interfaceSerializationHandler
- Parameters:
escape
- true if escaping is to be set on.- Throws:
SAXException
- See Also:
-
setIndent
public void setIndent(boolean indent) - See Also:
-
XSLOutputAttributes.setIndent(boolean)
-
setIndentAmount
public void setIndentAmount(int spaces) Description copied from interface:SerializationHandler
Set the number of spaces to indent for each indentation level.- Specified by:
setIndentAmount
in interfaceSerializationHandler
- Parameters:
spaces
- the number of spaces to indent for each indentation level.- See Also:
-
setOutputFormat
Description copied from interface:Serializer
Specifies an output format for this serializer. It the serializer has already been associated with an output format, it will switch to the new format. This method should not be called while the serializer is in the process of serializing a document.The standard property keys supported are: "method", "version", "encoding", "omit-xml-declaration", "standalone", doctype-public", "doctype-system", "cdata-section-elements", "indent", "media-type". These property keys and their values are described in the XSLT recommendation, see {@link <a href="http://www.w3.org/TR/1999/REC-xslt-19991116"> XSLT 1.0 recommendation}
The non-standard property keys supported are defined in
OutputPropertiesFactory
.This method can be called multiple times before a document is serialized. Each time it is called more, or over-riding property values, can be specified. One property value that can not be changed is that of the "method" property key.
The value of the "cdata-section-elements" property key is a whitespace separated list of elements. If the element is in a namespace then value is passed in this format: {uri}localName
If the "cdata-section-elements" key is specified on multiple calls to this method the set of elements specified in the value is not replaced from one call to the next, but it is cumulative across the calls.
- Specified by:
setOutputFormat
in interfaceSerializer
- Parameters:
format
- The output format to use, as a set of key/value pairs.- See Also:
-
setOutputStream
Description copied from interface:Serializer
Specifies an output stream to which the document should be serialized. This method should not be called while the serializer is in the process of serializing a document.The encoding specified in the output
Properties
is used, or if no encoding was specified, the default for the selected output method.Only one of setWriter() or setOutputStream() should be called.
- Specified by:
setOutputStream
in interfaceSerializer
- Parameters:
output
- The output stream- See Also:
-
setVersion
- See Also:
-
XSLOutputAttributes.setVersion(java.lang.String)
-
setWriter
Description copied from interface:Serializer
Specifies a writer to which the document should be serialized. This method should not be called while the serializer is in the process of serializing a document.The encoding specified for the output
Properties
must be identical to the output format used with the writer.Only one of setWriter() or setOutputStream() should be called.
- Specified by:
setWriter
in interfaceSerializer
- Parameters:
writer
- The output writer stream- See Also:
-
setTransformer
Description copied from interface:SerializationHandler
Set the transformer associated with the serializer.- Specified by:
setTransformer
in interfaceSerializationHandler
- Parameters:
transformer
- the transformer associated with the serializer.- See Also:
-
getTransformer
Description copied from interface:SerializationHandler
Get the transformer associated with the serializer.- Specified by:
getTransformer
in interfaceSerializationHandler
- Returns:
- Transformer the transformer associated with the serializer.
- 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.
- Specified by:
flushPending
in interfaceSerializationHandler
- Throws:
SAXException
- See Also:
-
addAttribute
public void addAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute) throws SAXException Description copied from interface:ExtendedContentHandler
Add at attribute to the current element- Specified by:
addAttribute
in interfaceExtendedContentHandler
- Parameters:
uri
- the namespace URI of the attribute namelocalName
- the local name of the attribute (without prefix)rawName
- the qualified name of the attributetype
- the attribute type typically character data (CDATA)value
- the value of the attributeXSLAttribute
- true if the added attribute is coming from an xsl:attribute element- Throws:
SAXException
- See Also:
-
addAttributes
Description copied from interface:ExtendedContentHandler
Add attributes to the current element- Specified by:
addAttributes
in interfaceExtendedContentHandler
- Parameters:
atts
- the attributes to add.- Throws:
SAXException
- See Also:
-
addAttribute
Description copied from interface:ExtendedContentHandler
Add an attribute to the current element. The namespace URI of the attribute will be calculated from the prefix of qName. The local name will be derived from qName and the type will be assumed to be "CDATA".- Specified by:
addAttribute
in interfaceExtendedContentHandler
- See Also:
-
characters
Description copied from interface:ExtendedContentHandler
This method is used to notify of a character event, but passing the data as a character String rather than the standard character array.- Specified by:
characters
in interfaceExtendedContentHandler
- Parameters:
chars
- the character data- Throws:
SAXException
- See Also:
-
endElement
Description copied from interface:ExtendedContentHandler
This method is used to notify that an element has ended. Unlike the standard SAX methodendElement(namespaceURI,localName,qName)
only the last parameter is passed. If needed the serializer can derive the localName from the qualified name and derive the namespaceURI from its implementation.- Specified by:
endElement
in interfaceExtendedContentHandler
- Parameters:
elemName
- the fully qualified element name.- Throws:
SAXException
- See Also:
-
startDocument
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
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.- Specified by:
startElement
in interfaceExtendedContentHandler
- Parameters:
uri
- the namespace URI of the elementlocalName
- the local name (without prefix) of the elementqName
- the qualified name of the element- Throws:
SAXException
- See Also:
-
startElement
Description copied from interface:ExtendedContentHandler
This method is used to notify of the start of an element- Specified by:
startElement
in interfaceExtendedContentHandler
- Parameters:
qName
- the fully qualified name of the element- Throws:
SAXException
- See Also:
-
namespaceAfterStartElement
Description copied from interface:ExtendedContentHandler
This method is used to notify that a prefix mapping is to start, but after an element is started. The SAX method callstartPrefixMapping(prefix,uri)
is used just before an element starts and applies to the element to come, not to the current element. This method applies to the current element. For example one could make the calls in this order:startElement("prfx8:elem9") namespaceAfterStartElement("http://namespace8","prfx8")
- Specified by:
namespaceAfterStartElement
in interfaceExtendedContentHandler
- Parameters:
uri
- the namespace URI being declaredprefix
- the prefix that maps to the given 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.- Specified by:
startPrefixMapping
in interfaceExtendedContentHandler
- 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
- See Also:
-
entityReference
Description copied from interface:ExtendedContentHandler
Notify of an entity reference.- Specified by:
entityReference
in interfaceExtendedContentHandler
- Parameters:
entityName
- the name of the entity- Throws:
SAXException
- See Also:
-
getNamespaceMappings
Description copied from interface:ExtendedContentHandler
This method returns an object that has the current namespace mappings in effect.- Specified by:
getNamespaceMappings
in interfaceExtendedContentHandler
- Returns:
- NamespaceMappings an object that has the current namespace mappings in effect.
- See Also:
-
getPrefix
Description copied from interface:ExtendedContentHandler
This method returns the prefix that currently maps to the given namespace URI.- Specified by:
getPrefix
in interfaceExtendedContentHandler
- Parameters:
uri
- the namespace URI- Returns:
- String the prefix that currently maps to the given URI.
- See Also:
-
getNamespaceURI
Description copied from interface:ExtendedContentHandler
This method gets the prefix associated with a current element or attribute name.- Specified by:
getNamespaceURI
in interfaceExtendedContentHandler
- Parameters:
name
- the qualified name of an element, or attributeisElement
- true if it is an element name, false if it is an atttribute name- Returns:
- String the namespace URI associated with the element or attribute.
- See Also:
-
getNamespaceURIFromPrefix
Description copied from interface:ExtendedContentHandler
This method returns the namespace URI currently associated with the prefix.- Specified by:
getNamespaceURIFromPrefix
in interfaceExtendedContentHandler
- Parameters:
prefix
- a prefix of an element or attribute.- Returns:
- String the namespace URI currently associated with the prefix.
- See Also:
-
setDocumentLocator
- Specified by:
setDocumentLocator
in interfaceContentHandler
- See Also:
-
endDocument
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
startElement
public void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
characters
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
ignorableWhitespace
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
processingInstruction
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
skippedEntity
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
- See Also:
-
comment
Description copied from interface:ExtendedLexicalHandler
This method is used to notify of a comment- Specified by:
comment
in interfaceExtendedLexicalHandler
- Parameters:
comment
- the comment, but unlike the SAX comment() method this method takes a String rather than a character array.- Throws:
SAXException
- See Also:
-
startDTD
- Specified by:
startDTD
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
endDTD
- Specified by:
endDTD
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
startEntity
- Specified by:
startEntity
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
endEntity
- Specified by:
endEntity
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
startCDATA
- Specified by:
startCDATA
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
endCDATA
- Specified by:
endCDATA
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
comment
- Specified by:
comment
in interfaceLexicalHandler
- Throws:
SAXException
- See Also:
-
getDoctypePublic
- See Also:
-
XSLOutputAttributes.getDoctypePublic()
-
getDoctypeSystem
- See Also:
-
XSLOutputAttributes.getDoctypeSystem()
-
getEncoding
- See Also:
-
XSLOutputAttributes.getEncoding()
-
getIndent
public boolean getIndent()- See Also:
-
XSLOutputAttributes.getIndent()
-
getIndentAmount
public int getIndentAmount()- See Also:
-
XSLOutputAttributes.getIndentAmount()
-
getMediaType
- See Also:
-
XSLOutputAttributes.getMediaType()
-
getOmitXMLDeclaration
public boolean getOmitXMLDeclaration()- See Also:
-
XSLOutputAttributes.getOmitXMLDeclaration()
-
getStandalone
- See Also:
-
XSLOutputAttributes.getStandalone()
-
getVersion
- See Also:
-
XSLOutputAttributes.getVersion()
-
setCdataSectionElements
- Throws:
Exception
- See Also:
-
XSLOutputAttributes.setCdataSectionElements(java.util.Vector)
-
setDoctype
- See Also:
-
XSLOutputAttributes.setDoctype(java.lang.String, java.lang.String)
-
setDoctypePublic
- See Also:
-
XSLOutputAttributes.setDoctypePublic(java.lang.String)
-
setDoctypeSystem
- See Also:
-
XSLOutputAttributes.setDoctypeSystem(java.lang.String)
-
setEncoding
- See Also:
-
XSLOutputAttributes.setEncoding(java.lang.String)
-
setMediaType
- See Also:
-
XSLOutputAttributes.setMediaType(java.lang.String)
-
setOmitXMLDeclaration
public void setOmitXMLDeclaration(boolean b) - See Also:
-
XSLOutputAttributes.setOmitXMLDeclaration(boolean)
-
setStandalone
- See Also:
-
XSLOutputAttributes.setStandalone(java.lang.String)
-
elementDecl
- Specified by:
elementDecl
in interfaceDeclHandler
- Throws:
SAXException
- See Also:
-
attributeDecl
public void attributeDecl(String arg0, String arg1, String arg2, String arg3, String arg4) throws SAXException - Specified by:
attributeDecl
in interfaceDeclHandler
- Throws:
SAXException
- See Also:
-
internalEntityDecl
- Specified by:
internalEntityDecl
in interfaceDeclHandler
- Throws:
SAXException
- See Also:
-
externalEntityDecl
- Specified by:
externalEntityDecl
in interfaceDeclHandler
- Throws:
SAXException
- See Also:
-
warning
- Specified by:
warning
in interfaceErrorHandler
- Throws:
SAXException
- See Also:
-
error
- Specified by:
error
in interfaceErrorHandler
- Throws:
SAXException
- See Also:
-
fatalError
- Specified by:
fatalError
in interfaceErrorHandler
- Throws:
SAXException
- See Also:
-
asDOMSerializer
Description copied from interface:Serializer
Return aDOMSerializer
interface into this serializer. Through the returned object the document to be serialized, a DOM, can be provided to the serializer. If the serializer does not support theDOMSerializer
interface, it should return null.In principle only one of asDOMSerializer() or asContentHander() should be called.
- Specified by:
asDOMSerializer
in interfaceSerializer
- 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:
-
setNamespaceMappings
Description copied from interface:SerializationHandler
Used only by TransformerSnapshotImpl to restore the serialization to a previous state.- Specified by:
setNamespaceMappings
in interfaceSerializationHandler
- Parameters:
mappings
- NamespaceMappings- See Also:
-
setSourceLocator
Description copied from interface:ExtendedContentHandler
This method is used to set the source locator, which might be used to generated an error message.- Specified by:
setSourceLocator
in interfaceExtendedContentHandler
- Parameters:
locator
- the source locator- See Also:
-
addUniqueAttribute
Description copied from interface:ExtendedContentHandler
Add a unique attribute to the current element. The attribute is guaranteed to be unique here. The serializer can write it out immediately without saving it in a table first. The integer flag contains information about the attribute, which helps the serializer to decide whether a particular processing is needed.- Specified by:
addUniqueAttribute
in interfaceExtendedContentHandler
- Parameters:
name
- the fully qualified attribute name.value
- the attribute valueflags
- a bitwise flag- Throws:
SAXException
- See Also:
-
characters
Description copied from interface:ExtendedContentHandler
This method is used to notify of a character event, but passing the data as a DOM Node rather than the standard character array.- Specified by:
characters
in interfaceExtendedContentHandler
- Parameters:
node
- a DOM Node containing text.- Throws:
SAXException
- See Also:
-
addXSLAttribute
Description copied from interface:ExtendedContentHandler
Add an attribute from an xsl:attribute element.- Specified by:
addXSLAttribute
in interfaceExtendedContentHandler
- Parameters:
qName
- the qualified attribute name (prefix:localName)value
- the attributes valueuri
- the uri that the prefix of the qName is mapped to.- See Also:
-
addAttribute
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException Description copied from interface:ExtendedContentHandler
Add at attribute to the current element, not from an xsl:attribute element.- Specified by:
addAttribute
in interfaceExtendedContentHandler
- Parameters:
uri
- the namespace URI of the attribute namelocalName
- the local name of the attribute (without prefix)rawName
- the qualified name of the attributetype
- the attribute type typically character data (CDATA)value
- the value of the attribute- Throws:
SAXException
- See Also:
-
notationDecl
- Specified by:
notationDecl
in interfaceDTDHandler
- Throws:
SAXException
- See Also:
-
unparsedEntityDecl
public void unparsedEntityDecl(String arg0, String arg1, String arg2, String arg3) throws SAXException - Specified by:
unparsedEntityDecl
in interfaceDTDHandler
- Throws:
SAXException
- See Also:
-
setDTDEntityExpansion
public void setDTDEntityExpansion(boolean expand) Description copied from interface:SerializationHandler
Default behavior is to expand DTD entities, that is the initall default value is true.- Specified by:
setDTDEntityExpansion
in interfaceSerializationHandler
- Parameters:
expand
- true if DTD entities are to be expanded, false if they are to be left as DTD entity references.- See Also:
-
getOutputProperty
-
getOutputPropertyDefault
-
setOutputProperty
-
setOutputPropertyDefault
-
asDOM3Serializer
Description copied from interface:Serializer
Return an Object into this serializer to be cast to a DOM3Serializer. Through the returned object the document to be serialized, a DOM (Level 3), can be provided to the serializer. If the serializer does not support casting to aDOM3Serializer
interface, it should return null.In principle only one of asDOM3Serializer() or asContentHander() should be called.
- Specified by:
asDOM3Serializer
in interfaceSerializer
- Returns:
- An Object to be cast to a DOM3Serializer interface into this serializer, or null if the serializer is not DOM capable
- Throws:
IOException
- An I/O exception occured- See Also:
-