org.apache.xml.serializer

Class EmptySerializer

public class EmptySerializer extends Object implements SerializationHandler

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.

UNKNOWN: internal

Method Summary
voidaddAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute)
voidaddAttribute(String name, String value)
voidaddAttribute(String uri, String localName, String rawName, String type, String value)
voidaddAttributes(Attributes atts)
voidaddUniqueAttribute(String name, String value, int flags)
voidaddXSLAttribute(String qName, String value, String uri)
ContentHandlerasContentHandler()
DOMSerializerasDOMSerializer()
voidattributeDecl(String arg0, String arg1, String arg2, String arg3, String arg4)
voidcharacters(String chars)
voidcharacters(char[] arg0, int arg1, int arg2)
voidcharacters(Node node)
voidclose()
voidcomment(String comment)
voidcomment(char[] arg0, int arg1, int arg2)
voidelementDecl(String arg0, String arg1)
voidendCDATA()
voidendDocument()
voidendDTD()
voidendElement(String elemName)
voidendElement(String arg0, String arg1, String arg2)
voidendEntity(String arg0)
voidendPrefixMapping(String arg0)
voidentityReference(String entityName)
voiderror(SAXParseException arg0)
voidexternalEntityDecl(String arg0, String arg1, String arg2)
voidfatalError(SAXParseException arg0)
voidflushPending()
StringgetDoctypePublic()
StringgetDoctypeSystem()
StringgetEncoding()
booleangetIndent()
intgetIndentAmount()
StringgetMediaType()
NamespaceMappingsgetNamespaceMappings()
StringgetNamespaceURI(String name, boolean isElement)
StringgetNamespaceURIFromPrefix(String prefix)
booleangetOmitXMLDeclaration()
PropertiesgetOutputFormat()
OutputStreamgetOutputStream()
StringgetPrefix(String uri)
StringgetStandalone()
TransformergetTransformer()
StringgetVersion()
WritergetWriter()
voidignorableWhitespace(char[] arg0, int arg1, int arg2)
voidinternalEntityDecl(String arg0, String arg1)
voidnamespaceAfterStartElement(String uri, String prefix)
voidnotationDecl(String arg0, String arg1, String arg2)
voidprocessingInstruction(String arg0, String arg1)
booleanreset()
voidserialize(Node node)
voidsetCdataSectionElements(Vector URI_and_localNames)
voidsetCdataSectionElements(Hashtable h)
voidsetContentHandler(ContentHandler ch)
voidsetDoctype(String system, String pub)
voidsetDoctypePublic(String doctype)
voidsetDoctypeSystem(String doctype)
voidsetDocumentLocator(Locator arg0)
voidsetDTDEntityExpansion(boolean expand)
voidsetEncoding(String encoding)
booleansetEscaping(boolean escape)
voidsetIndent(boolean indent)
voidsetIndentAmount(int spaces)
voidsetMediaType(String mediatype)
voidsetNamespaceMappings(NamespaceMappings mappings)
voidsetOmitXMLDeclaration(boolean b)
voidsetOutputFormat(Properties format)
voidsetOutputStream(OutputStream output)
voidsetSourceLocator(SourceLocator locator)
voidsetStandalone(String standalone)
voidsetTransformer(Transformer transformer)
voidsetVersion(String version)
voidsetWriter(Writer writer)
voidskippedEntity(String arg0)
voidstartCDATA()
voidstartDocument()
voidstartDTD(String arg0, String arg1, String arg2)
voidstartElement(String uri, String localName, String qName)
voidstartElement(String qName)
voidstartElement(String arg0, String arg1, String arg2, Attributes arg3)
voidstartEntity(String arg0)
booleanstartPrefixMapping(String prefix, String uri, boolean shouldFlush)
voidstartPrefixMapping(String arg0, String arg1)
voidunparsedEntityDecl(String arg0, String arg1, String arg2, String arg3)
voidwarning(SAXParseException arg0)

Method Detail

addAttribute

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

See Also: ExtendedContentHandler

addAttribute

public void addAttribute(String name, String value)

See Also: ExtendedContentHandler

addAttribute

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

See Also: ExtendedContentHandler

addAttributes

public void addAttributes(Attributes atts)

See Also: addAttributes

addUniqueAttribute

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

See Also: ExtendedContentHandler

addXSLAttribute

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

See Also: ExtendedContentHandler

asContentHandler

public ContentHandler asContentHandler()

See Also: SerializationHandler

asDOMSerializer

public DOMSerializer asDOMSerializer()

See Also: asDOMSerializer

attributeDecl

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

See Also: org.xml.sax.ext.DeclHandler#attributeDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)

characters

public void characters(String chars)

See Also: ExtendedContentHandler

characters

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

See Also: org.xml.sax.ContentHandler#characters(char[], int, int)

characters

public void characters(Node node)

See Also: characters

close

public void close()

See Also: close

comment

public void comment(String comment)

See Also: ExtendedLexicalHandler

comment

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

See Also: org.xml.sax.ext.LexicalHandler#comment(char[], int, int)

elementDecl

public void elementDecl(String arg0, String arg1)

See Also: org.xml.sax.ext.DeclHandler#elementDecl(java.lang.String, java.lang.String)

endCDATA

public void endCDATA()

See Also: org.xml.sax.ext.LexicalHandler#endCDATA()

endDocument

public void endDocument()

See Also: org.xml.sax.ContentHandler#endDocument()

endDTD

public void endDTD()

See Also: org.xml.sax.ext.LexicalHandler#endDTD()

endElement

public void endElement(String elemName)

See Also: ExtendedContentHandler

endElement

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

See Also: org.xml.sax.ContentHandler#endElement(java.lang.String, java.lang.String, java.lang.String)

endEntity

public void endEntity(String arg0)

See Also: org.xml.sax.ext.LexicalHandler#endEntity(java.lang.String)

endPrefixMapping

public void endPrefixMapping(String arg0)

See Also: org.xml.sax.ContentHandler#endPrefixMapping(java.lang.String)

entityReference

public void entityReference(String entityName)

See Also: ExtendedContentHandler

error

public void error(SAXParseException arg0)

See Also: org.xml.sax.ErrorHandler#error(org.xml.sax.SAXParseException)

externalEntityDecl

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

See Also: org.xml.sax.ext.DeclHandler#externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)

fatalError

public void fatalError(SAXParseException arg0)

See Also: org.xml.sax.ErrorHandler#fatalError(org.xml.sax.SAXParseException)

flushPending

public void flushPending()

See Also: flushPending

getDoctypePublic

public String getDoctypePublic()

See Also: getDoctypePublic

getDoctypeSystem

public String getDoctypeSystem()

See Also: getDoctypeSystem

getEncoding

public String getEncoding()

See Also: getEncoding

getIndent

public boolean getIndent()

See Also: getIndent

getIndentAmount

public int getIndentAmount()

See Also: getIndentAmount

getMediaType

public String getMediaType()

See Also: getMediaType

getNamespaceMappings

public NamespaceMappings getNamespaceMappings()

See Also: getNamespaceMappings

getNamespaceURI

public String getNamespaceURI(String name, boolean isElement)

See Also: ExtendedContentHandler

getNamespaceURIFromPrefix

public String getNamespaceURIFromPrefix(String prefix)

See Also: ExtendedContentHandler

getOmitXMLDeclaration

public boolean getOmitXMLDeclaration()

See Also: getOmitXMLDeclaration

getOutputFormat

public Properties getOutputFormat()

See Also: SerializationHandler

getOutputStream

public OutputStream getOutputStream()

See Also: SerializationHandler

getPrefix

public String getPrefix(String uri)

See Also: ExtendedContentHandler

getStandalone

public String getStandalone()

See Also: getStandalone

getTransformer

public Transformer getTransformer()

See Also: getTransformer

getVersion

public String getVersion()

See Also: getVersion

getWriter

public Writer getWriter()

See Also: SerializationHandler

ignorableWhitespace

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

See Also: org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int)

internalEntityDecl

public void internalEntityDecl(String arg0, String arg1)

See Also: org.xml.sax.ext.DeclHandler#internalEntityDecl(java.lang.String, java.lang.String)

namespaceAfterStartElement

public void namespaceAfterStartElement(String uri, String prefix)

See Also: ExtendedContentHandler

notationDecl

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

See Also: org.xml.sax.DTDHandler#notationDecl(java.lang.String, java.lang.String, java.lang.String)

processingInstruction

public void processingInstruction(String arg0, String arg1)

See Also: org.xml.sax.ContentHandler#processingInstruction(java.lang.String, java.lang.String)

reset

public boolean reset()

See Also: SerializationHandler

serialize

public void serialize(Node node)

See Also: serialize

setCdataSectionElements

public void setCdataSectionElements(Vector URI_and_localNames)

See Also: SerializationHandler

setCdataSectionElements

public void setCdataSectionElements(Hashtable h)

See Also: XSLOutputAttributes

setContentHandler

public void setContentHandler(ContentHandler ch)

See Also: setContentHandler

setDoctype

public void setDoctype(String system, String pub)

See Also: XSLOutputAttributes

setDoctypePublic

public void setDoctypePublic(String doctype)

See Also: XSLOutputAttributes

setDoctypeSystem

public void setDoctypeSystem(String doctype)

See Also: XSLOutputAttributes

setDocumentLocator

public void setDocumentLocator(Locator arg0)

See Also: org.xml.sax.ContentHandler#setDocumentLocator(org.xml.sax.Locator)

setDTDEntityExpansion

public void setDTDEntityExpansion(boolean expand)

See Also: SerializationHandler

setEncoding

public void setEncoding(String encoding)

See Also: XSLOutputAttributes

setEscaping

public boolean setEscaping(boolean escape)

See Also: SerializationHandler

setIndent

public void setIndent(boolean indent)

See Also: SerializationHandler

setIndentAmount

public void setIndentAmount(int spaces)

See Also: SerializationHandler

setMediaType

public void setMediaType(String mediatype)

See Also: XSLOutputAttributes

setNamespaceMappings

public void setNamespaceMappings(NamespaceMappings mappings)

See Also: setNamespaceMappings

setOmitXMLDeclaration

public void setOmitXMLDeclaration(boolean b)

See Also: XSLOutputAttributes

setOutputFormat

public void setOutputFormat(Properties format)

See Also: SerializationHandler

setOutputStream

public void setOutputStream(OutputStream output)

See Also: SerializationHandler

setSourceLocator

public void setSourceLocator(SourceLocator locator)

See Also: setSourceLocator

setStandalone

public void setStandalone(String standalone)

See Also: XSLOutputAttributes

setTransformer

public void setTransformer(Transformer transformer)

See Also: setTransformer

setVersion

public void setVersion(String version)

See Also: SerializationHandler

setWriter

public void setWriter(Writer writer)

See Also: SerializationHandler

skippedEntity

public void skippedEntity(String arg0)

See Also: org.xml.sax.ContentHandler#skippedEntity(java.lang.String)

startCDATA

public void startCDATA()

See Also: org.xml.sax.ext.LexicalHandler#startCDATA()

startDocument

public void startDocument()

See Also: ExtendedContentHandler

startDTD

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

See Also: org.xml.sax.ext.LexicalHandler#startDTD(java.lang.String, java.lang.String, java.lang.String)

startElement

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

See Also: ExtendedContentHandler

startElement

public void startElement(String qName)

See Also: ExtendedContentHandler

startElement

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

See Also: org.xml.sax.ContentHandler#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)

startEntity

public void startEntity(String arg0)

See Also: org.xml.sax.ext.LexicalHandler#startEntity(java.lang.String)

startPrefixMapping

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

See Also: ExtendedContentHandler

startPrefixMapping

public void startPrefixMapping(String arg0, String arg1)

See Also: org.xml.sax.ContentHandler#startPrefixMapping(java.lang.String, java.lang.String)

unparsedEntityDecl

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

See Also: org.xml.sax.DTDHandler#unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)

warning

public void warning(SAXParseException arg0)

See Also: org.xml.sax.ErrorHandler#warning(org.xml.sax.SAXParseException)

Copyright © 2005 Apache XML Project. All Rights Reserved.