APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.serializer

public Class EmptySerializer

extends Object
implements SerializationHandler
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xml.internal.serializer.SerializationHandler, com.sun.org.apache.xml.internal.serializer.Serializer, com.sun.org.apache.xml.internal.serializer.DOMSerializer, org.xml.sax.ErrorHandler, org.xml.sax.DTDHandler, org.xml.sax.ext.DeclHandler, com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes, com.sun.org.apache.xml.internal.serializer.ExtendedLexicalHandler, org.xml.sax.ext.LexicalHandler, com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler, org.xml.sax.ContentHandler
Known Direct Subclasses
com.sun.org.apache.xalan.internal.xsltc.dom.SimpleResultTreeImpl, com.sun.org.apache.xalan.internal.xsltc.runtime.StringValueHandler
Imports
java.io.IOException, .OutputStream, .Writer, java.util.List, .Properties, javax.xml.transform.SourceLocator, .Transformer, org.w3c.dom.Node, org.xml.sax.Attributes, .ContentHandler, .Locator, .SAXException, .SAXParseException

This class is an adapter class. Its only purpose is to be extended and for that extended class to over-ride all methods that are to be used. This class is not a public API, it is only public because it is used across package boundaries.

Field Summary

Modifier and TypeField and Description
protected static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.addAttribute.

Add at attribute to the current element

public void
addAttribute(String name, String value)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.addAttribute.

Add an attribute to the current element.

public void
addAttribute(String uri, String localName, String rawName, String type, String value)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.addAttribute.

Add at attribute to the current element, not from an xsl:attribute element.

public void
public void
addUniqueAttribute(String name, String value, int flags)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.addUniqueAttribute.

Add a unique attribute to the current element.

public void
addXSLAttribute(String qName, String value, String uri)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.addXSLAttribute.

Add an attribute from an xsl:attribute element.

pack-priv void
public ContentHandler
public Object
asDOM3Serializer()

Implements com.sun.org.apache.xml.internal.serializer.Serializer.asDOM3Serializer.

Return an Object into this serializer to be cast to a DOM3Serializer.

public DOMSerializer
public void
attributeDecl(String arg0, String arg1, String arg2, String arg3, String arg4)

Implements org.xml.sax.ext.DeclHandler.attributeDecl.

Report an attribute type declaration.

public void
characters(String chars)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.characters.

This method is used to notify of a character event, but passing the data as a character String rather than the standard character array.

public void
characters(char[] arg0, int arg1, int arg2)

Implements org.xml.sax.ContentHandler.characters.

Receive notification of character data.

public void
characters(Node node)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.characters.

This method is used to notify of a character event, but passing the data as a DOM Node rather than the standard character array.

public void
public void
comment(String comment)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedLexicalHandler.comment.

This method is used to notify of a comment

public void
comment(char[] arg0, int arg1, int arg2)

Implements org.xml.sax.ext.LexicalHandler.comment.

Report an XML comment anywhere in the document.

protected void
protected void
protected void
couldThrowSAXException(char[] chars, int off, int len)

protected void
public void
elementDecl(String arg0, String arg1)

Implements org.xml.sax.ext.DeclHandler.elementDecl.

Report an element type declaration.

public void
endCDATA()

Implements org.xml.sax.ext.LexicalHandler.endCDATA.

Report the end of a CDATA section.

public void
endDocument()

Implements org.xml.sax.ContentHandler.endDocument.

Receive notification of the end of a document.

public void
endDTD()

Implements org.xml.sax.ext.LexicalHandler.endDTD.

Report the end of DTD declarations.

public void
endElement(String elemName)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.endElement.

This method is used to notify that an element has ended.

public void
endElement(String arg0, String arg1, String arg2)

Implements org.xml.sax.ContentHandler.endElement.

Receive notification of the end of an element.

public void
endEntity(String arg0)

Implements org.xml.sax.ext.LexicalHandler.endEntity.

Report the end of an entity.

public void
endPrefixMapping(String arg0)

Implements org.xml.sax.ContentHandler.endPrefixMapping.

End the scope of a prefix-URI mapping.

public void
public void
error(SAXParseException arg0)

Implements org.xml.sax.ErrorHandler.error.

Receive notification of a recoverable error.

public void
externalEntityDecl(String arg0, String arg1, String arg2)

Implements org.xml.sax.ext.DeclHandler.externalEntityDecl.

Report a parsed external entity declaration.

public void
fatalError(SAXParseException arg0)

Implements org.xml.sax.ErrorHandler.fatalError.

Receive notification of a non-recoverable, fatal error.

public void
flushPending()

Implements com.sun.org.apache.xml.internal.serializer.SerializationHandler.flushPending.

A SerializationHandler accepts SAX-like events, so it can accumulate attributes or namespace nodes after a startElement().

public String
getDoctypePublic()

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.getDoctypePublic.

Returns the previously set value of the value to be used as the public identifier in the document type declaration (DTD).

public String
getDoctypeSystem()

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.getDoctypeSystem.

Returns the previously set value of the value to be used as the system identifier in the document type declaration (DTD).

public String
public boolean
public int
public String
public NamespaceMappings
getNamespaceMappings()

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.getNamespaceMappings.

This method returns an object that has the current namespace mappings in effect.

public String
getNamespaceURI(String name, boolean isElement)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.getNamespaceURI.

This method gets the prefix associated with a current element or attribute name.

public String
getNamespaceURIFromPrefix(String prefix)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.getNamespaceURIFromPrefix.

This method returns the namespace URI currently associated with the prefix.

public boolean
public Properties
getOutputFormat()

Implements com.sun.org.apache.xml.internal.serializer.Serializer.getOutputFormat.

Returns the output format properties for this serializer.

public String
getOutputProperty(String name)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.getOutputProperty.

Get the value for a property that affects seraialization, if a property was set return that value, otherwise return the default value, otherwise return null.

public String
getOutputPropertyDefault(String name)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.getOutputPropertyDefault.

Get the default value for a property that affects seraialization, or null if there is none.

public OutputStream
getOutputStream()

Implements com.sun.org.apache.xml.internal.serializer.Serializer.getOutputStream.

Get the output stream where the events will be serialized to.

public String
getPrefix(String uri)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.getPrefix.

This method returns the prefix that currently maps to the given namespace URI.

public String
public Transformer
getTransformer()

Implements com.sun.org.apache.xml.internal.serializer.SerializationHandler.getTransformer.

Get the transformer associated with the serializer.

public String
public Writer
getWriter()

Implements com.sun.org.apache.xml.internal.serializer.Serializer.getWriter.

Get the character stream where the events will be serialized to.

public void
ignorableWhitespace(char[] arg0, int arg1, int arg2)

Implements org.xml.sax.ContentHandler.ignorableWhitespace.

Receive notification of ignorable whitespace in element content.

public void
internalEntityDecl(String arg0, String arg1)

Implements org.xml.sax.ext.DeclHandler.internalEntityDecl.

Report an internal entity declaration.

public void
namespaceAfterStartElement(String uri, String prefix)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.namespaceAfterStartElement.

This method is used to notify that a prefix mapping is to start, but after an element is started.

public void
notationDecl(String arg0, String arg1, String arg2)

Implements org.xml.sax.DTDHandler.notationDecl.

Receive notification of a notation declaration event.

public void
processingInstruction(String arg0, String arg1)

Implements org.xml.sax.ContentHandler.processingInstruction.

Receive notification of a processing instruction.

public boolean
reset()

Implements com.sun.org.apache.xml.internal.serializer.Serializer.reset.

This method resets the serializer.

public void
serialize(Node node)

Implements com.sun.org.apache.xml.internal.serializer.SerializationHandler.serialize.

Notify that the serializer should take this DOM node as input to be serialized.

public void
setCdataSectionElements(List<String> URI_and_localNames)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.setCdataSectionElements.

Sets the value coming from the xsl:output cdata-section-elements stylesheet property.

public void
setContentHandler(ContentHandler ch)

Implements com.sun.org.apache.xml.internal.serializer.SerializationHandler.setContentHandler.

Set the SAX Content handler that the serializer sends its output to.

public void
setDoctype(String system, String pub)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.setDoctype.

Set the value coming from the xsl:output doctype-public and doctype-system stylesheet properties

public void
setDoctypePublic(String doctype)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.setDoctypePublic.

Set the value coming from the xsl:output doctype-public stylesheet attribute.

public void
setDoctypeSystem(String doctype)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.setDoctypeSystem.

Set the value coming from the xsl:output doctype-system stylesheet attribute.

public void
setDocumentLocator(Locator arg0)

Implements org.xml.sax.ContentHandler.setDocumentLocator.

Receive an object for locating the origin of SAX document events.

public void
setDTDEntityExpansion(boolean expand)

Implements com.sun.org.apache.xml.internal.serializer.SerializationHandler.setDTDEntityExpansion.

Default behavior is to expand DTD entities, that is the initall default value is true.

public void
setEncoding(String encoding)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.setEncoding.

Sets the character encoding coming from the xsl:output encoding stylesheet attribute.

public boolean
setEscaping(boolean escape)

Implements com.sun.org.apache.xml.internal.serializer.SerializationHandler.setEscaping.

Turns special character escaping on/off.

public void
setIndent(boolean indent)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.setIndent.

Sets the value coming from the xsl:output indent stylesheet attribute.

public void
setIndentAmount(int spaces)

Implements com.sun.org.apache.xml.internal.serializer.SerializationHandler.setIndentAmount.

Set the number of spaces to indent for each indentation level.

public void
setIsStandalone(boolean isStandalone)

Implements com.sun.org.apache.xml.internal.serializer.SerializationHandler.setIsStandalone.

Specify if the output will be treated as a standalone property

public void
setMediaType(String mediatype)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.setMediaType.

Sets the value coming from the xsl:output media-type stylesheet attribute.

public void
setNamespaceMappings(NamespaceMappings mappings)

Implements com.sun.org.apache.xml.internal.serializer.SerializationHandler.setNamespaceMappings.

Used only by TransformerSnapshotImpl to restore the serialization to a previous state.

public void
setOmitXMLDeclaration(boolean b)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.setOmitXMLDeclaration.

Sets the value coming from the xsl:output omit-xml-declaration stylesheet attribute

public void
setOutputFormat(Properties format)

Implements com.sun.org.apache.xml.internal.serializer.Serializer.setOutputFormat.

Specifies an output format for this serializer.

public void
setOutputProperty(String name, String val)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.setOutputProperty.

Set the non-default value for a property that affects seraialization.

public void
setOutputPropertyDefault(String name, String val)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.setOutputPropertyDefault.

Set the default value for a property that affects seraialization.

public void
setOutputStream(OutputStream output)

Implements com.sun.org.apache.xml.internal.serializer.Serializer.setOutputStream.

Specifies an output stream to which the document should be serialized.

public void
setSourceLocator(SourceLocator locator)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.setSourceLocator.

This method is used to set the source locator, which might be used to generated an error message.

public void
setStandalone(String standalone)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.setStandalone.

Sets the value coming from the xsl:output standalone stylesheet attribute.

public void
setTransformer(Transformer transformer)

Implements com.sun.org.apache.xml.internal.serializer.SerializationHandler.setTransformer.

Set the transformer associated with the serializer.

public void
setVersion(String version)

Implements com.sun.org.apache.xml.internal.serializer.XSLOutputAttributes.setVersion.

Sets the value coming from the xsl:output version attribute.

public void
setWriter(Writer writer)

Implements com.sun.org.apache.xml.internal.serializer.Serializer.setWriter.

Specifies a writer to which the document should be serialized.

public void
skippedEntity(String arg0)

Implements org.xml.sax.ContentHandler.skippedEntity.

Receive notification of a skipped entity.

public void
startCDATA()

Implements org.xml.sax.ext.LexicalHandler.startCDATA.

Report the start of a CDATA section.

public void
startDocument()

Implements org.xml.sax.ContentHandler.startDocument.

Receive notification of the beginning of a document.

public void
startDTD(String arg0, String arg1, String arg2)

Implements org.xml.sax.ext.LexicalHandler.startDTD.

Report the start of DTD declarations, if any.

public void
startElement(String uri, String localName, String qName)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.startElement.

This method is used to notify that an element is starting.

public void
startElement(String qName)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.startElement.

This method is used to notify of the start of an element

public void
startElement(String arg0, String arg1, String arg2, Attributes arg3)

Implements org.xml.sax.ContentHandler.startElement.

Receive notification of the beginning of an element.

public void
startEntity(String arg0)

Implements org.xml.sax.ext.LexicalHandler.startEntity.

Report the beginning of some internal and external XML entities.

public boolean
startPrefixMapping(String prefix, String uri, boolean shouldFlush)

Implements com.sun.org.apache.xml.internal.serializer.ExtendedContentHandler.startPrefixMapping.

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.

public void
startPrefixMapping(String arg0, String arg1)

Implements org.xml.sax.ContentHandler.startPrefixMapping.

Begin the scope of a prefix-URI Namespace mapping.

public void
unparsedEntityDecl(String arg0, String arg1, String arg2, String arg3)

Implements org.xml.sax.DTDHandler.unparsedEntityDecl.

Receive notification of an unparsed entity declaration event.

public void
warning(SAXParseException arg0)

Implements org.xml.sax.ErrorHandler.warning.

Receive notification of a warning.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait