org.apache.xml.serializer
Class ToTextSAXHandler
java.lang.Object
|
+--org.apache.xml.serializer.SerializerBase
|
+--org.apache.xml.serializer.ToSAXHandler
|
+--org.apache.xml.serializer.ToTextSAXHandler
- public final class ToTextSAXHandler
- extends ToSAXHandler
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.
- Usage:
- **For internal use only**
Method Summary |
void |
addAttribute(java.lang.String name,
java.lang.String value)
From XSLTC |
void |
addAttribute(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName,
java.lang.String type,
java.lang.String value,
boolean XSLAttribute)
|
void |
attributeDecl(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4)
|
void |
characters(char[] characters,
int offset,
int length)
|
void |
characters(java.lang.String characters)
|
void |
comment(char[] ch,
int start,
int length)
|
void |
comment(java.lang.String data)
|
void |
elementDecl(java.lang.String arg0,
java.lang.String arg1)
|
void |
endCDATA()
|
void |
endDocument()
From XSLTC |
void |
endDTD()
|
void |
endElement(java.lang.String elemName)
From XSLTC |
void |
endElement(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
|
void |
endPrefixMapping(java.lang.String arg0)
|
void |
externalEntityDecl(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
|
java.util.Properties |
getOutputFormat()
|
java.io.OutputStream |
getOutputStream()
|
java.io.Writer |
getWriter()
|
void |
ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
|
void |
indent(int n)
Does nothing because
the indent attribute is ignored for text output. |
void |
internalEntityDecl(java.lang.String arg0,
java.lang.String arg1)
|
void |
namespaceAfterStartElement(java.lang.String prefix,
java.lang.String uri)
|
void |
processingInstruction(java.lang.String arg0,
java.lang.String arg1)
From XSLTC |
boolean |
reset()
|
void |
serialize(Node node)
|
void |
setDocumentLocator(Locator arg0)
|
boolean |
setEscaping(boolean escape)
|
void |
setIndent(boolean indent)
|
void |
setOutputFormat(java.util.Properties format)
|
void |
setOutputStream(java.io.OutputStream output)
|
void |
setWriter(java.io.Writer writer)
|
void |
skippedEntity(java.lang.String arg0)
|
void |
startCDATA()
|
void |
startElement(java.lang.String elementName)
|
void |
startElement(java.lang.String elementNamespaceURI,
java.lang.String elementLocalName,
java.lang.String elementName)
From XSLTC |
void |
startElement(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2,
Attributes arg3)
|
void |
startEntity(java.lang.String arg0)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
boolean |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri,
boolean shouldFlush)
|
Methods inherited from class org.apache.xml.serializer.ToSAXHandler |
addUniqueAttribute,
characters,
error,
fatalError,
flushPending,
setCdataSectionElements,
setContentHandler,
setLexHandler,
setShouldOutputNSAttr,
setTransformState,
startDTD,
warning |
Methods inherited from class org.apache.xml.serializer.SerializerBase |
addAttribute,
addAttributeAlways,
addAttributes,
addXSLAttribute,
asContentHandler,
asDOMSerializer,
close,
endEntity,
entityReference,
fireEndEntity,
getDoctypePublic,
getDoctypeSystem,
getEncoding,
getIndent,
getIndentAmount,
getMediaType,
getNamespaceMappings,
getNamespaceURI,
getNamespaceURIFromPrefix,
getOmitXMLDeclaration,
getPrefix,
getStandalone,
getTransformer,
getVersion,
notationDecl,
setDoctype,
setDoctypePublic,
setDoctypeSystem,
setDTDEntityExpansion,
setEncoding,
setIndentAmount,
setMediaType,
setNamespaceMappings,
setOmitXMLDeclaration,
setSourceLocator,
setStandalone,
setTransformer,
setVersion,
startDocument,
unparsedEntityDecl |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ToTextSAXHandler
public ToTextSAXHandler(ContentHandler hdlr,
LexicalHandler lex,
java.lang.String encoding)
ToTextSAXHandler
public ToTextSAXHandler(ContentHandler handler,
java.lang.String encoding)
- From XSLTC
endElement
public void endElement(java.lang.String elemName)
throws SAXException
- From XSLTC
- See Also:
ExtendedContentHandler.endElement(String)
endElement
public void endElement(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
throws SAXException
- See Also:
ContentHandler.endElement(String, String, String)
comment
public void comment(char[] ch,
int start,
int length)
throws SAXException
comment
public void comment(java.lang.String data)
throws SAXException
- Overrides:
- comment in class ToSAXHandler
getOutputFormat
public java.util.Properties getOutputFormat()
- See Also:
Serializer.getOutputFormat()
getOutputStream
public java.io.OutputStream getOutputStream()
- See Also:
Serializer.getOutputStream()
getWriter
public java.io.Writer getWriter()
- See Also:
Serializer.getWriter()
indent
public void indent(int n)
throws SAXException
- Does nothing because
the indent attribute is ignored for text output.
reset
public boolean reset()
- Overrides:
- reset in class ToSAXHandler
- See Also:
Serializer.reset()
serialize
public void serialize(Node node)
throws java.io.IOException
- See Also:
DOMSerializer.serialize(Node)
setEscaping
public boolean setEscaping(boolean escape)
- See Also:
SerializationHandler.setEscaping(boolean)
setIndent
public void setIndent(boolean indent)
- Overrides:
- setIndent in class SerializerBase
- See Also:
XSLOutputAttributes.setIndent(boolean)
setOutputFormat
public void setOutputFormat(java.util.Properties format)
- See Also:
Serializer.setOutputFormat(Properties)
setOutputStream
public void setOutputStream(java.io.OutputStream output)
- See Also:
Serializer.setOutputStream(OutputStream)
setWriter
public void setWriter(java.io.Writer writer)
- See Also:
Serializer.setWriter(Writer)
addAttribute
public void addAttribute(java.lang.String uri,
java.lang.String localName,
java.lang.String rawName,
java.lang.String type,
java.lang.String value,
boolean XSLAttribute)
- Overrides:
- addAttribute in class SerializerBase
- See Also:
ExtendedContentHandler.addAttribute(String, String, String, String, String)
attributeDecl
public void attributeDecl(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2,
java.lang.String arg3,
java.lang.String arg4)
throws SAXException
- See Also:
DeclHandler.attributeDecl(String, String, String, String, String)
elementDecl
public void elementDecl(java.lang.String arg0,
java.lang.String arg1)
throws SAXException
- See Also:
DeclHandler.elementDecl(String, String)
externalEntityDecl
public void externalEntityDecl(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
throws SAXException
- See Also:
DeclHandler.externalEntityDecl(String, String, String)
internalEntityDecl
public void internalEntityDecl(java.lang.String arg0,
java.lang.String arg1)
throws SAXException
- See Also:
DeclHandler.internalEntityDecl(String, String)
endPrefixMapping
public void endPrefixMapping(java.lang.String arg0)
throws SAXException
- See Also:
ContentHandler.endPrefixMapping(String)
ignorableWhitespace
public void ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
throws SAXException
- See Also:
ContentHandler.ignorableWhitespace(char[], int, int)
processingInstruction
public void processingInstruction(java.lang.String arg0,
java.lang.String arg1)
throws SAXException
- From XSLTC
- Overrides:
- processingInstruction in class ToSAXHandler
- See Also:
ContentHandler.processingInstruction(String, String)
setDocumentLocator
public void setDocumentLocator(Locator arg0)
- Overrides:
- setDocumentLocator in class SerializerBase
- See Also:
ContentHandler.setDocumentLocator(Locator)
skippedEntity
public void skippedEntity(java.lang.String arg0)
throws SAXException
- See Also:
ContentHandler.skippedEntity(String)
startElement
public void startElement(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2,
Attributes arg3)
throws SAXException
- Overrides:
- startElement in class ToSAXHandler
- See Also:
ContentHandler.startElement(String, String, String, Attributes)
endCDATA
public void endCDATA()
throws SAXException
- See Also:
LexicalHandler.endCDATA()
endDTD
public void endDTD()
throws SAXException
- See Also:
LexicalHandler.endDTD()
startCDATA
public void startCDATA()
throws SAXException
- See Also:
LexicalHandler.startCDATA()
startEntity
public void startEntity(java.lang.String arg0)
throws SAXException
- See Also:
LexicalHandler.startEntity(String)
startElement
public void startElement(java.lang.String elementNamespaceURI,
java.lang.String elementLocalName,
java.lang.String elementName)
throws SAXException
- From XSLTC
- Overrides:
- startElement in class ToSAXHandler
- See Also:
ExtendedContentHandler.startElement(String)
startElement
public void startElement(java.lang.String elementName)
throws SAXException
- Overrides:
- startElement in class ToSAXHandler
endDocument
public void endDocument()
throws SAXException
- From XSLTC
- See Also:
ContentHandler.endDocument()
characters
public void characters(java.lang.String characters)
throws SAXException
- Overrides:
- characters in class ToSAXHandler
- See Also:
ExtendedContentHandler.characters(String)
characters
public void characters(char[] characters,
int offset,
int length)
throws SAXException
- See Also:
ContentHandler.characters(char[], int, int)
addAttribute
public void addAttribute(java.lang.String name,
java.lang.String value)
- From XSLTC
- Overrides:
- addAttribute in class SerializerBase
startPrefixMapping
public boolean startPrefixMapping(java.lang.String prefix,
java.lang.String uri,
boolean shouldFlush)
throws SAXException
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
throws SAXException
namespaceAfterStartElement
public void namespaceAfterStartElement(java.lang.String prefix,
java.lang.String uri)
throws SAXException
- Overrides:
- namespaceAfterStartElement in class SerializerBase
Copyright © 2005 Apache XML Project. All Rights Reserved.