org.apache.xml.serializer
public final class ToXMLSAXHandler extends ToSAXHandler
UNKNOWN: internal
Constructor Summary | |
---|---|
ToXMLSAXHandler() | |
ToXMLSAXHandler(ContentHandler handler, String encoding) | |
ToXMLSAXHandler(ContentHandler handler, LexicalHandler lex, String encoding) |
Method Summary | |
---|---|
void | addAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute)
Adds the given attribute to the set of attributes, and also makes sure
that the needed prefix/uri mapping is declared, but only if there is a
currently open element.
|
void | attributeDecl(String arg0, String arg1, String arg2, String arg3, String arg4) |
void | characters(String chars) |
void | characters(char[] ch, int off, int len) |
void | closeCDATA()
Closes ane open cdata tag, and
unlike the this.endCDATA() method (from the LexicalHandler) interface,
this "internal" method will send the endCDATA() call to the wrapped
handler.
|
void | comment(char[] arg0, int arg1, int arg2) |
void | elementDecl(String arg0, String arg1) |
void | endCDATA() |
void | endDocument()
Receives notification of the end of the document. |
void | endDTD() |
void | endElement(String namespaceURI, String localName, String qName) |
void | endElement(String elemName) |
void | endPrefixMapping(String prefix) |
void | externalEntityDecl(String arg0, String arg1, String arg2) |
Properties | getOutputFormat() |
OutputStream | getOutputStream() |
Writer | getWriter() |
void | ignorableWhitespace(char[] arg0, int arg1, int arg2) |
void | indent(int n)
Do nothing for SAX. |
void | internalEntityDecl(String arg0, String arg1) |
void | namespaceAfterStartElement(String prefix, String uri)
Send a namespace declaration in the output document. |
void | processingInstruction(String target, String data) |
boolean | reset()
Try's to reset the super class and reset this class for
re-use, so that you don't need to create a new serializer
(mostly for performance reasons).
|
void | serialize(Node node) |
void | setDocumentLocator(Locator arg0) |
boolean | setEscaping(boolean escape) |
void | setOutputFormat(Properties format) |
void | setOutputStream(OutputStream output) |
void | setWriter(Writer writer) |
void | skippedEntity(String arg0) |
void | startCDATA() |
void | startElement(String elementNamespaceURI, String elementLocalName, String elementName)
Start an element in the output document. |
void | startElement(String elementName) |
void | startElement(String namespaceURI, String localName, String name, Attributes atts) |
void | startEntity(String arg0) |
void | startPrefixMapping(String prefix, String uri) |
boolean | startPrefixMapping(String prefix, String uri, boolean shouldFlush)
Remember the prefix/uri mapping at the current nested element depth.
|
Parameters: uri the URI of the attribute localName the local name of the attribute rawName the qualified name of the attribute type the type of the attribute (probably CDATA) value the value of the attribute XSLAttribute true if this attribute is coming from an xsl:attribute element
See Also: ExtendedContentHandler
See Also: org.xml.sax.ext.DeclHandler#attributeDecl(String, String, String, String, String)
See Also: characters
See Also: org.xml.sax.ext.LexicalHandler#comment(char[], int, int)
See Also: org.xml.sax.ext.DeclHandler#elementDecl(String, String)
See Also: org.xml.sax.ext.LexicalHandler#endCDATA()
See Also: org.xml.sax.ContentHandler#endDocument()
See Also: org.xml.sax.ext.LexicalHandler#endDTD()
See Also: org.xml.sax.ContentHandler#endElement(String, String, String)
See Also: endElement
See Also: org.xml.sax.ContentHandler#endPrefixMapping(String)
See Also: org.xml.sax.ext.DeclHandler#externalEntityDecl(String, String, String)
See Also: getOutputFormat
See Also: getOutputStream
See Also: getWriter
See Also: org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int)
See Also: org.xml.sax.ext.DeclHandler#internalEntityDecl(String, String)
See Also: org.xml.sax.ContentHandler#processingInstruction(String, String)
Send a processing instruction to the output document
Returns: true if the class was successfuly reset.
See Also: reset
See Also: serialize
See Also: org.xml.sax.ContentHandler#setDocumentLocator(Locator)
See Also: SerializationHandler
See Also: setOutputFormat
See Also: setOutputStream
See Also: setWriter
See Also: org.xml.sax.ContentHandler#skippedEntity(String)
See Also: org.xml.sax.ContentHandler#startElement(String, String, String, Attributes)
See Also: org.xml.sax.ext.LexicalHandler#startEntity(String)
Parameters: prefix The prefix that maps to the URI uri The URI for the namespace
See Also: org.xml.sax.ContentHandler#startPrefixMapping(String, String)
Parameters: prefix The prefix that maps to the URI uri The URI for the namespace shouldFlush a flag indicating if the mapping applies to the current element or an up coming child (not used).
See Also: org.xml.sax.ContentHandler#startPrefixMapping(String, String)