org.apache.xml.serializer

Class ToTextSAXHandler

public final class ToTextSAXHandler extends ToSAXHandler

Deprecated: As of Xalan 2.7.1, replaced by the use of ToXMLSAXHandler.

This class converts SAX-like event to SAX events for xsl:output method "text". This class is only to be used internally. This class is not a public API.

UNKNOWN: internal

Constructor Summary
ToTextSAXHandler(ContentHandler hdlr, LexicalHandler lex, String encoding)
ToTextSAXHandler(ContentHandler handler, String encoding)
From XSLTC
Method Summary
voidaddAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute)
voidaddAttribute(String name, String value)
From XSLTC
voidattributeDecl(String arg0, String arg1, String arg2, String arg3, String arg4)
voidcharacters(String characters)
voidcharacters(char[] characters, int offset, int length)
voidcomment(char[] ch, int start, int length)
voidcomment(String data)
voidelementDecl(String arg0, String arg1)
voidendCDATA()
voidendDocument()
From XSLTC
voidendDTD()
voidendElement(String elemName)
From XSLTC
voidendElement(String arg0, String arg1, String arg2)
voidendPrefixMapping(String arg0)
voidexternalEntityDecl(String arg0, String arg1, String arg2)
PropertiesgetOutputFormat()
OutputStreamgetOutputStream()
WritergetWriter()
voidignorableWhitespace(char[] arg0, int arg1, int arg2)
voidindent(int n)
Does nothing because the indent attribute is ignored for text output.
voidinternalEntityDecl(String arg0, String arg1)
voidnamespaceAfterStartElement(String prefix, String uri)
voidprocessingInstruction(String arg0, String arg1)
From XSLTC
booleanreset()
voidserialize(Node node)
voidsetDocumentLocator(Locator arg0)
booleansetEscaping(boolean escape)
voidsetIndent(boolean indent)
voidsetOutputFormat(Properties format)
voidsetOutputStream(OutputStream output)
voidsetWriter(Writer writer)
voidskippedEntity(String arg0)
voidstartCDATA()
voidstartElement(String arg0, String arg1, String arg2, Attributes arg3)
voidstartElement(String elementNamespaceURI, String elementLocalName, String elementName)
From XSLTC
voidstartElement(String elementName)
voidstartEntity(String arg0)
booleanstartPrefixMapping(String prefix, String uri, boolean shouldFlush)
voidstartPrefixMapping(String prefix, String uri)

Constructor Detail

ToTextSAXHandler

public ToTextSAXHandler(ContentHandler hdlr, LexicalHandler lex, String encoding)

ToTextSAXHandler

public ToTextSAXHandler(ContentHandler handler, String encoding)
From XSLTC

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)
From XSLTC

attributeDecl

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

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

characters

public void characters(String characters)

See Also: characters

characters

public void characters(char[] characters, int offset, int length)

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

comment

public void comment(char[] ch, int start, int length)

comment

public void comment(String data)

elementDecl

public void elementDecl(String arg0, String arg1)

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

endCDATA

public void endCDATA()

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

endDocument

public void endDocument()
From XSLTC

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)
From XSLTC

See Also: endElement

endElement

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

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

endPrefixMapping

public void endPrefixMapping(String arg0)

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

externalEntityDecl

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

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

getOutputFormat

public Properties getOutputFormat()

See Also: getOutputFormat

getOutputStream

public OutputStream getOutputStream()

See Also: getOutputStream

getWriter

public Writer getWriter()

See Also: getWriter

ignorableWhitespace

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

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

indent

public void indent(int n)
Does nothing because the indent attribute is ignored for text output.

internalEntityDecl

public void internalEntityDecl(String arg0, String arg1)

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

namespaceAfterStartElement

public void namespaceAfterStartElement(String prefix, String uri)

processingInstruction

public void processingInstruction(String arg0, String arg1)
From XSLTC

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

reset

public boolean reset()

See Also: reset

serialize

public void serialize(Node node)

See Also: serialize

setDocumentLocator

public void setDocumentLocator(Locator arg0)

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

setEscaping

public boolean setEscaping(boolean escape)

See Also: SerializationHandler

setIndent

public void setIndent(boolean indent)

See Also: SerializationHandler

setOutputFormat

public void setOutputFormat(Properties format)

See Also: setOutputFormat

setOutputStream

public void setOutputStream(OutputStream output)

See Also: setOutputStream

setWriter

public void setWriter(Writer writer)

See Also: setWriter

skippedEntity

public void skippedEntity(String arg0)

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

startCDATA

public void startCDATA()

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

startElement

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

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

startElement

public void startElement(String elementNamespaceURI, String elementLocalName, String elementName)
From XSLTC

See Also: startElement

startElement

public void startElement(String elementName)

startEntity

public void startEntity(String arg0)

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

startPrefixMapping

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

startPrefixMapping

public void startPrefixMapping(String prefix, String uri)
Copyright B) 2006 Apache XML Project. All Rights Reserved.