| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.xml.serializer.SerializerBaseorg.apache.xml.serializer.ToSAXHandlerorg.apache.xml.serializer.ToTextSAXHandlerpublic class ToTextSAXHandlerextends ToSAXHandlerFields inherited from interface org.apache.xml.serializer.ExtendedContentHandler | |
HTML_ATTREMPTY, HTML_ATTRURL, NO_BAD_CHARS | |
Fields inherited from interface org.apache.xml.serializer.SerializerConstants | |
BEGCDATA, CDATA_CONTINUE, CDATA_DELIMITER_CLOSE, CDATA_DELIMITER_OPEN, CNTCDATA, DEFAULT_SAX_SERIALIZER, EMPTYSTRING, ENDCDATA, ENTITY_AMP, ENTITY_CRLF, ENTITY_GT, ENTITY_LT, ENTITY_QUOT, XMLNS_PREFIX, XMLNS_URI, XML_PREFIX | |
Constructor Summary | |
| |
| |
Method Summary | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Properties | |
OutputStream | |
Writer | |
void |
|
void |
|
void |
|
void |
|
void |
|
boolean |
|
void |
|
void |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
boolean |
|
Methods inherited from class org.apache.xml.serializer.ToSAXHandler | |
addUniqueAttribute, characters, characters, comment, error, fatalError, flushPending, processingInstruction, reset, setCdataSectionElements, setContentHandler, setLexHandler, setShouldOutputNSAttr, setTransformState, startDTD, startElement, startElement, startElement, warning | |
public ToTextSAXHandler(ContentHandler hdlr,
LexicalHandler lex,
String encoding)public ToTextSAXHandler(ContentHandler handler,
String encoding)From XSLTC
public void addAttribute(String name,
String value)From XSLTC
- Specified by:
- addAttribute in interface ExtendedContentHandler
- Overrides:
- addAttribute in interface SerializerBase
public void addAttribute(String uri,
String localName,
String rawName,
String type,
String value)
- Specified by:
- addAttribute in interface ExtendedContentHandler
- Overrides:
- addAttribute in interface SerializerBase
public void attributeDecl(String arg0,
String arg1,
String arg2,
String arg3,
String arg4)
throws SAXException
- See Also:
org.xml.sax.ext.DeclHandler.attributeDecl(String, String, String, String, String)
public void characters(String characters)
throws SAXException
- Specified by:
- characters in interface ExtendedContentHandler
- Overrides:
- characters in interface ToSAXHandler
public void characters(char[] characters,
int offset,
int length)
throws SAXException
- See Also:
org.xml.sax.ContentHandler.characters(char[], int, int)
public void comment(String data)
throws org.xml.sax.SAXExceptionReceive notification of a comment.
- Specified by:
- comment in interface ExtendedLexicalHandler
- Overrides:
- comment in interface ToSAXHandler
public void comment(ch[] ,
int start,
int length)
throws org.xml.sax.SAXExceptionpublic void elementDecl(String arg0,
String arg1)
throws SAXException
- See Also:
org.xml.sax.ext.DeclHandler.elementDecl(String, String)
public void endCDATA()
throws SAXException
- See Also:
org.xml.sax.ext.LexicalHandler.endCDATA()
public void endDTD()
throws SAXException
- See Also:
org.xml.sax.ext.LexicalHandler.endDTD()
public void endDocument()
throws SAXExceptionFrom XSLTC
- See Also:
org.xml.sax.ContentHandler.endDocument()
public void endElement(String elemName)
throws SAXExceptionFrom XSLTC
- Specified by:
- endElement in interface ExtendedContentHandler
public void endElement(String arg0,
String arg1,
String arg2)
throws SAXException
- See Also:
org.xml.sax.ContentHandler.endElement(String, String, String)
public void endPrefixMapping(String arg0)
throws SAXException
- See Also:
org.xml.sax.ContentHandler.endPrefixMapping(String)
public void externalEntityDecl(String arg0,
String arg1,
String arg2)
throws SAXException
- See Also:
org.xml.sax.ext.DeclHandler.externalEntityDecl(String, String, String)
public Properties getOutputFormat()
- Specified by:
- getOutputFormat in interface Serializer
- See Also:
Serializer.getOutputFormat()
public OutputStream getOutputStream()
- Specified by:
- getOutputStream in interface Serializer
- See Also:
Serializer.getOutputStream()
public Writer getWriter()
- Specified by:
- getWriter in interface Serializer
- See Also:
Serializer.getWriter()
public void ignorableWhitespace(char[] arg0,
int arg1,
int arg2)
throws SAXException
- See Also:
org.xml.sax.ContentHandler.ignorableWhitespace(char[], int, int)
public void indent(int n)
throws SAXExceptionDoes nothing because the indent attribute is ignored for text output.
public void internalEntityDecl(String arg0,
String arg1)
throws SAXException
- See Also:
org.xml.sax.ext.DeclHandler.internalEntityDecl(String, String)
public void namespaceAfterStartElement(String prefix,
String uri)
throws SAXExceptionThis method is used when a prefix/uri namespace mapping is indicated after the element was started with a startElement() and before and endElement(). startPrefixMapping(prefix,uri) would be used before the startElement() call.
- Specified by:
- namespaceAfterStartElement in interface ExtendedContentHandler
- Overrides:
- namespaceAfterStartElement in interface SerializerBase
- Parameters:
prefix- the prefix associated with the given URI.uri- the URI of the namespace
public void processingInstruction(String arg0,
String arg1)
throws SAXExceptionFrom XSLTC
- Overrides:
- processingInstruction in interface ToSAXHandler
- See Also:
org.xml.sax.ContentHandler.processingInstruction(String, String)
public boolean reset()
- Specified by:
- reset in interface Serializer
- Overrides:
- reset in interface ToSAXHandler
- See Also:
Serializer.reset()
public void serialize(Node node)
throws IOException
- Specified by:
- serialize in interface SerializationHandler
- serialize in interface DOMSerializer
- See Also:
DOMSerializer.serialize(Node)
public void setDocumentLocator(Locator arg0)
- Overrides:
- setDocumentLocator in interface SerializerBase
- See Also:
org.xml.sax.ContentHandler.setDocumentLocator(Locator)
public boolean setEscaping(boolean escape)
- Specified by:
- setEscaping in interface SerializationHandler
public void setIndent(boolean indent)
- Specified by:
- setIndent in interface XSLOutputAttributes
- Overrides:
- setIndent in interface SerializerBase
- See Also:
org.apache.xml.serializer.SerializationHandler.setIndent(boolean)
public void setOutputFormat(Properties format)
- Specified by:
- setOutputFormat in interface Serializer
public void setOutputStream(OutputStream output)
- Specified by:
- setOutputStream in interface Serializer
public void setWriter(Writer writer)
- Specified by:
- setWriter in interface Serializer
- See Also:
Serializer.setWriter(Writer)
public void skippedEntity(String arg0)
throws SAXException
- See Also:
org.xml.sax.ContentHandler.skippedEntity(String)
public void startCDATA()
throws SAXException
- See Also:
org.xml.sax.ext.LexicalHandler.startCDATA()
public void startElement(String elementName)
throws SAXExceptionAn element starts, but attributes are not fully known yet.
- Specified by:
- startElement in interface ExtendedContentHandler
- Overrides:
- startElement in interface ToSAXHandler
- Parameters:
elementName- the element name, with prefix (if any).
public void startElement(String elementNamespaceURI,
String elementLocalName,
String elementName)
throws SAXExceptionFrom XSLTC
- Specified by:
- startElement in interface ExtendedContentHandler
- Overrides:
- startElement in interface ToSAXHandler
public void startElement(String arg0,
String arg1,
String arg2,
Attributes arg3)
throws SAXException
- Overrides:
- startElement in interface ToSAXHandler
- See Also:
org.xml.sax.ContentHandler.startElement(String, String, String, Attributes)
public void startEntity(String arg0)
throws SAXException
- See Also:
org.xml.sax.ext.LexicalHandler.startEntity(String)
public void startPrefixMapping(String prefix,
String uri)
throws org.xml.sax.SAXExceptionpublic boolean startPrefixMapping(String prefix,
String uri,
boolean shouldFlush)
throws SAXExceptionThis 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 interface ExtendedContentHandler
- 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.