| java.lang.Object org.apache.xml.serializer.SerializerBase org.apache.xml.serializer.ToSAXHandler
All known Subclasses: org.apache.xml.serializer.ToHTMLSAXHandler, org.apache.xml.serializer.ToXMLSAXHandler, org.apache.xml.serializer.ToTextSAXHandler,
ToSAXHandler | abstract public class ToSAXHandler extends SerializerBase (Code) | | This class is used to provide a base behavior to be inherited
by other To...SAXHandler serializers.
This class is not a public API.
|
Method Summary | |
public void | addUniqueAttribute(String qName, String value, int flags) | public void | characters(String characters) Receive notification of character data. | public void | characters(org.w3c.dom.Node node) This method gets the node's value as a String and uses that String as if
it were an input character notification. | protected void | closeCDATA() | protected void | closeStartTag() | public void | comment(String comment) Receive notification of a comment. | public void | error(SAXParseException exc) | public void | fatalError(SAXParseException exc) | public void | flushPending() This method flushes any pending events, which can be startDocument()
closing the opening tag of an element, or closing an open CDATA section. | boolean | getShouldOutputNSAttr() | public void | processingInstruction(String target, String data) Do nothing as this is an abstract class. | 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 | setCdataSectionElements(Vector URI_and_localNames) Does nothing. | public void | setContentHandler(ContentHandler _saxHandler) Sets the SAX ContentHandler. | public void | setLexHandler(LexicalHandler _lexHandler) Sets the LexicalHandler. | public void | setShouldOutputNSAttr(boolean doOutputNSAttr) Set whether or not namespace declarations (e.g. | public void | setTransformState(TransformStateSetter ts) Pass in a reference to a TransformState object, which
can be used during SAX ContentHandler events to obtain
information about he state of the transformation. | public void | startDTD(String arg0, String arg1, String arg2) Do nothing. | protected void | startDocumentInternal() | public void | startElement(String arg0, String arg1, String arg2, Attributes arg3) Receive notification of the beginning of an element, although this is a
SAX method additional namespace or attribute information can occur before
or after this call, that is associated with this element. | public void | startElement(String uri, String localName, String qName) Receives notification that an element starts, but attributes are not
fully known yet. | public void | startElement(String qName) An element starts, but attributes are not fully known yet. | public void | warning(SAXParseException exc) |
m_state | protected TransformStateSetter m_state(Code) | | If this is true, then the content handler wrapped by this
serializer implements the TransformState interface which
will give the content handler access to the state of
the transform.
|
ToSAXHandler | public ToSAXHandler()(Code) | | |
flushPending | public void flushPending() throws SAXException(Code) | | This method flushes any pending events, which can be startDocument()
closing the opening tag of an element, or closing an open CDATA section.
|
getShouldOutputNSAttr | boolean getShouldOutputNSAttr()(Code) | | Returns true if namespace declarations from calls such as
startPrefixMapping("prefix1","uri1") should
also be mirrored with self generated additional attributes of elements
that declare the namespace, for example the attribute xmlns:prefix1="uri1"
|
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 |
setContentHandler | public void setContentHandler(ContentHandler _saxHandler)(Code) | | Sets the SAX ContentHandler.
Parameters: _saxHandler - The ContentHandler to set |
setLexHandler | public void setLexHandler(LexicalHandler _lexHandler)(Code) | | Sets the LexicalHandler.
Parameters: _lexHandler - The LexicalHandler to set |
setShouldOutputNSAttr | public void setShouldOutputNSAttr(boolean doOutputNSAttr)(Code) | | Set whether or not namespace declarations (e.g.
xmlns:foo) should appear as attributes of
elements
Parameters: doOutputNSAttr - whether or not namespace declarationsshould appear as attributes |
setTransformState | public void setTransformState(TransformStateSetter ts)(Code) | | Pass in a reference to a TransformState object, which
can be used during SAX ContentHandler events to obtain
information about he state of the transformation. This
method will be called before each startDocument event.
Parameters: ts - A reference to a TransformState object |
startDocumentInternal | protected void startDocumentInternal() throws SAXException(Code) | | Pass callback to the SAX Handler
|
startElement | public void startElement(String uri, String localName, String qName) throws SAXException(Code) | | Receives notification that an element starts, but attributes are not
fully known yet.
Parameters: uri - the URI of the namespace of the element (optional) Parameters: localName - the element name, but without prefix (optional) Parameters: qName - the element name, with prefix, if any (required) See Also: ExtendedContentHandler.startElement(StringStringString) |
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)
|
|
|