org.apache.xml.serializer
public abstract class ToSAXHandler extends SerializerBase
UNKNOWN: internal
Constructor Summary | |
---|---|
ToSAXHandler() | |
ToSAXHandler(ContentHandler hdlr, LexicalHandler lex, String encoding) | |
ToSAXHandler(ContentHandler handler, String encoding) |
Method Summary | |
---|---|
void | addUniqueAttribute(String qName, String value, int flags)
Add a unique attribute |
void | characters(String characters)
Receive notification of character data.
|
void | characters(Node node)
This method gets the node's value as a String and uses that String as if
it were an input character notification. |
void | comment(String comment)
Receive notification of a comment.
|
void | error(SAXParseException exc) |
void | fatalError(SAXParseException exc) |
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. |
void | processingInstruction(String target, String data)
Do nothing as this is an abstract class. |
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 | setCdataSectionElements(Vector URI_and_localNames)
Does nothing. |
void | setContentHandler(ContentHandler _saxHandler)
Sets the SAX ContentHandler. |
void | setLexHandler(LexicalHandler _lexHandler)
Sets the LexicalHandler. |
void | setShouldOutputNSAttr(boolean doOutputNSAttr) Set whether or not namespace declarations (e.g.
xmlns:foo) should appear as attributes of
elements |
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. |
void | startDTD(String arg0, String arg1, String arg2)
Do nothing. |
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.
|
void | startElement(String uri, String localName, String qName)
Receives notification that an element starts, but attributes are not
fully known yet.
|
void | startElement(String qName)
An element starts, but attributes are not fully known yet.
|
void | warning(SAXParseException exc) |
Parameters: characters The string of characters to process.
Throws: org.xml.sax.SAXException
See Also: characters
Parameters: node the Node to serialize
Throws: org.xml.sax.SAXException
See Also: comment
See Also: org.xml.sax.ErrorHandler#error(SAXParseException)
See Also: org.xml.sax.ErrorHandler#fatalError(SAXParseException)
See Also: org.xml.sax.ContentHandler#processingInstruction(String, String)
Returns: true if the class was successfuly reset.
See Also: reset
See Also: SerializationHandler
Parameters: _saxHandler The ContentHandler to set
Parameters: _lexHandler The LexicalHandler to set
Parameters: doOutputNSAttr whether or not namespace declarations should appear as attributes
Parameters: ts A reference to a TransformState object
See Also: org.xml.sax.ext.LexicalHandler#startDTD(String, String, String)
Throws: org.xml.sax.SAXException Any SAX exception, possibly wrapping another exception. org.xml.sax.SAXException
See Also: org.xml.sax.ContentHandler#startElement org.xml.sax.ContentHandler#endElement org.xml.sax.AttributeList
org.xml.sax.ContentHandler#startElement(String,String,String,Attributes)
Parameters: uri the URI of the namespace of the element (optional) localName the element name, but without prefix (optional) qName the element name, with prefix, if any (required)
See Also: ExtendedContentHandler
Parameters: qName the element name, with prefix (if any).
See Also: startElement
See Also: org.xml.sax.ErrorHandler#warning(SAXParseException)