| java.lang.Object org.apache.xml.serializer.SerializerBase org.apache.xml.serializer.ToSAXHandler org.apache.xml.serializer.ToXMLSAXHandler
ToXMLSAXHandler | final public class ToXMLSAXHandler extends ToSAXHandler (Code) | | This class receives notification of SAX-like events, and with gathered
information over these calls it will invoke the equivalent SAX methods
on a handler, the ultimate xsl:output method is known to be "xml".
This class is not a public API, it is only public because it is used by Xalan.
|
Method Summary | |
public 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. | public void | attributeDecl(String arg0, String arg1, String arg2, String arg3, String arg4) | public void | characters(String chars) | public void | characters(char[] ch, int off, int len) | public 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. | protected void | closeStartTag() This method is called when all the data needed for a call to the
SAX handler's startElement() method has been gathered. | public void | comment(char[] arg0, int arg1, int arg2) | public void | elementDecl(String arg0, String arg1) | public void | endCDATA() | public void | endDTD() | public void | endDocument() Receives notification of the end of the document. | public void | endElement(String namespaceURI, String localName, String qName) | public void | endElement(String elemName) | public void | endPrefixMapping(String prefix) | public void | externalEntityDecl(String arg0, String arg1, String arg2) | public Properties | getOutputFormat() | public OutputStream | getOutputStream() | public Writer | getWriter() | public void | ignorableWhitespace(char[] arg0, int arg1, int arg2) | public void | indent(int n) Do nothing for SAX. | public void | internalEntityDecl(String arg0, String arg1) | public void | namespaceAfterStartElement(String prefix, String uri) Send a namespace declaration in the output document. | protected boolean | popNamespace(String prefix) Undeclare the namespace that is currently pointed to by a given
prefix. | public void | processingInstruction(String target, String data) | public 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). | public void | serialize(Node node) | public void | setDocumentLocator(Locator arg0) | public boolean | setEscaping(boolean escape) | public void | setOutputFormat(Properties format) | public void | setOutputStream(OutputStream output) | public void | setWriter(Writer writer) | public void | skippedEntity(String arg0) | public void | startCDATA() | public void | startElement(String elementNamespaceURI, String elementLocalName, String elementName) Start an element in the output document. | public void | startElement(String elementName) | public void | startElement(String namespaceURI, String localName, String name, Attributes atts) | public void | startEntity(String arg0) | public void | startPrefixMapping(String prefix, String uri) | public boolean | startPrefixMapping(String prefix, String uri, boolean shouldFlush) Remember the prefix/uri mapping at the current nested element depth. |
m_escapeSetting | protected boolean m_escapeSetting(Code) | | Keeps track of whether output escaping is currently enabled
|
ToXMLSAXHandler | public ToXMLSAXHandler()(Code) | | |
addAttribute | public void addAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute) throws SAXException(Code) | | 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.
Parameters: uri - the URI of the attribute Parameters: localName - the local name of the attribute Parameters: rawName - the qualified name of the attribute Parameters: type - the type of the attribute (probably CDATA) Parameters: value - the value of the attribute Parameters: XSLAttribute - true if this attribute is coming from an xsl:attribute element See Also: ExtendedContentHandler.addAttribute(StringStringStringStringString) |
closeCDATA | public void closeCDATA() throws SAXException(Code) | | 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.
|
closeStartTag | protected void closeStartTag() throws SAXException(Code) | | This method is called when all the data needed for a call to the
SAX handler's startElement() method has been gathered.
|
namespaceAfterStartElement | public void namespaceAfterStartElement(String prefix, String uri) throws SAXException(Code) | | Send a namespace declaration in the output document. The namespace
declaration will not be include if the namespace is already in scope
with the same prefix.
|
popNamespace | protected boolean popNamespace(String prefix)(Code) | | Undeclare the namespace that is currently pointed to by a given
prefix. Inform SAX handler if prefix was previously mapped.
|
reset | public boolean reset()(Code) | | 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).
true if the class was successfuly reset. See Also: Serializer.reset |
startElement | public void startElement(String elementNamespaceURI, String elementLocalName, String elementName) throws SAXException(Code) | | Start an element in the output document. This might be an XML element
(data type) or a CDATA section.
|
Methods inherited from org.apache.xml.serializer.ToSAXHandler | public void addUniqueAttribute(String qName, String value, int flags) throws SAXException(Code)(Java Doc) public void characters(String characters) throws SAXException(Code)(Java Doc) public void characters(org.w3c.dom.Node node) throws org.xml.sax.SAXException(Code)(Java Doc) protected void closeCDATA() throws SAXException(Code)(Java Doc) protected void closeStartTag() throws SAXException(Code)(Java Doc) public void comment(String comment) throws SAXException(Code)(Java Doc) public void error(SAXParseException exc) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException exc) throws SAXException(Code)(Java Doc) public void flushPending() throws SAXException(Code)(Java Doc) boolean getShouldOutputNSAttr()(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public boolean reset()(Code)(Java Doc) public void setCdataSectionElements(Vector URI_and_localNames)(Code)(Java Doc) public void setContentHandler(ContentHandler _saxHandler)(Code)(Java Doc) public void setLexHandler(LexicalHandler _lexHandler)(Code)(Java Doc) public void setShouldOutputNSAttr(boolean doOutputNSAttr)(Code)(Java Doc) public void setTransformState(TransformStateSetter ts)(Code)(Java Doc) public void startDTD(String arg0, String arg1, String arg2) throws SAXException(Code)(Java Doc) protected void startDocumentInternal() throws SAXException(Code)(Java Doc) public void startElement(String arg0, String arg1, String arg2, Attributes arg3) throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void startElement(String qName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException exc) throws SAXException(Code)(Java Doc)
|
Methods inherited from org.apache.xml.serializer.SerializerBase | public void addAttribute(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute) throws SAXException(Code)(Java Doc) public void addAttribute(String name, String value)(Code)(Java Doc) public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException(Code)(Java Doc) public boolean addAttributeAlways(String uri, String localName, String rawName, String type, String value, boolean XSLAttribute)(Code)(Java Doc) public void addAttributes(Attributes atts) throws SAXException(Code)(Java Doc) public void addXSLAttribute(String name, String value, String uri)(Code)(Java Doc) public ContentHandler asContentHandler() throws IOException(Code)(Java Doc) public DOMSerializer asDOMSerializer() throws IOException(Code)(Java Doc) public void characters(org.w3c.dom.Node node) throws org.xml.sax.SAXException(Code)(Java Doc) public void close()(Code)(Java Doc) public void comment(String data) throws SAXException(Code)(Java Doc) public void endEntity(String name) throws org.xml.sax.SAXException(Code)(Java Doc) public void entityReference(String name) throws org.xml.sax.SAXException(Code)(Java Doc) public void error(SAXParseException exc) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException exc) throws SAXException(Code)(Java Doc) protected void fireCDATAEvent(char[] chars, int start, int length) throws org.xml.sax.SAXException(Code)(Java Doc) protected void fireCharEvent(char[] chars, int start, int length) throws org.xml.sax.SAXException(Code)(Java Doc) protected void fireCommentEvent(char[] chars, int start, int length) throws org.xml.sax.SAXException(Code)(Java Doc) protected void fireEndDoc() throws org.xml.sax.SAXException(Code)(Java Doc) protected void fireEndElem(String name) throws org.xml.sax.SAXException(Code)(Java Doc) public void fireEndEntity(String name) throws org.xml.sax.SAXException(Code)(Java Doc) protected void fireEntityReference(String name) throws org.xml.sax.SAXException(Code)(Java Doc) protected void fireEscapingEvent(String name, String data) throws org.xml.sax.SAXException(Code)(Java Doc) protected void fireStartDoc() throws org.xml.sax.SAXException(Code)(Java Doc) protected void fireStartElem(String elemName) throws org.xml.sax.SAXException(Code)(Java Doc) protected void fireStartEntity(String name) throws org.xml.sax.SAXException(Code)(Java Doc) public String getDoctypePublic()(Code)(Java Doc) public String getDoctypeSystem()(Code)(Java Doc) public String getEncoding()(Code)(Java Doc) public boolean getIndent()(Code)(Java Doc) public int getIndentAmount()(Code)(Java Doc) protected static String getLocalName(String qname)(Code)(Java Doc) public String getMediaType()(Code)(Java Doc) public NamespaceMappings getNamespaceMappings()(Code)(Java Doc) public String getNamespaceURI(String qname, boolean isElement)(Code)(Java Doc) public String getNamespaceURIFromPrefix(String prefix)(Code)(Java Doc) public boolean getOmitXMLDeclaration()(Code)(Java Doc) public String getPrefix(String namespaceURI)(Code)(Java Doc) final protected static String getPrefixPart(String qname)(Code)(Java Doc) public String getStandalone()(Code)(Java Doc) public Transformer getTransformer()(Code)(Java Doc) public String getVersion()(Code)(Java Doc) final boolean inTemporaryOutputState()(Code)(Java Doc) protected void initCDATA()(Code)(Java Doc) protected boolean isCdataSection()(Code)(Java Doc) public void namespaceAfterStartElement(String uri, String prefix) throws SAXException(Code)(Java Doc) public void notationDecl(String arg0, String arg1, String arg2) throws SAXException(Code)(Java Doc) protected String patchName(String qname)(Code)(Java Doc) public boolean reset()(Code)(Java Doc) public void setDTDEntityExpansion(boolean expand)(Code)(Java Doc) public void setDoctype(String doctypeSystem, String doctypePublic)(Code)(Java Doc) public void setDoctypePublic(String doctypePublic)(Code)(Java Doc) public void setDoctypeSystem(String doctypeSystem)(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void setEncoding(String m_encoding)(Code)(Java Doc) public void setIndent(boolean doIndent)(Code)(Java Doc) public void setIndentAmount(int m_indentAmount)(Code)(Java Doc) public void setMediaType(String mediaType)(Code)(Java Doc) public void setNamespaceMappings(NamespaceMappings mappings)(Code)(Java Doc) public void setOmitXMLDeclaration(boolean b)(Code)(Java Doc) public void setSourceLocator(SourceLocator locator)(Code)(Java Doc) public void setStandalone(String standalone)(Code)(Java Doc) protected void setStandaloneInternal(String standalone)(Code)(Java Doc) public void setTransformer(Transformer t)(Code)(Java Doc) public void setVersion(String version)(Code)(Java Doc) public void startDocument() throws org.xml.sax.SAXException(Code)(Java Doc) protected void startDocumentInternal() throws org.xml.sax.SAXException(Code)(Java Doc) public void unparsedEntityDecl(String arg0, String arg1, String arg2, String arg3) throws SAXException(Code)(Java Doc) public void warning(SAXParseException exc) throws SAXException(Code)(Java Doc)
|
|
|