|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.serializer.SerializerBase | +--org.apache.xml.serializer.ToSAXHandler
This class is used to provide a base behavior to be inherited by other To...SAXHandler serializers. This class is not a public API.
Fields inherited from class org.apache.xml.serializer.SerializerBase |
PKG_NAME,
PKG_PATH |
Constructor Summary | |
ToSAXHandler()
|
|
ToSAXHandler(ContentHandler hdlr,
LexicalHandler lex,
java.lang.String encoding)
|
|
ToSAXHandler(ContentHandler handler,
java.lang.String encoding)
|
Method Summary | |
void |
addUniqueAttribute(java.lang.String qName,
java.lang.String value,
int flags)
Add a unique attribute |
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 |
characters(java.lang.String characters)
Receive notification of character data. |
void |
comment(java.lang.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(java.lang.String target,
java.lang.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(java.util.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. |
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(java.lang.String arg0,
java.lang.String arg1,
java.lang.String arg2)
Do nothing. |
void |
startElement(java.lang.String qName)
An element starts, but attributes are not fully known yet. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Receives notification that an element starts, but attributes are not fully known yet. |
void |
startElement(java.lang.String arg0,
java.lang.String arg1,
java.lang.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 |
warning(SAXParseException exc)
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ToSAXHandler()
public ToSAXHandler(ContentHandler hdlr, LexicalHandler lex, java.lang.String encoding)
public ToSAXHandler(ContentHandler handler, java.lang.String encoding)
Method Detail |
public void startDTD(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2) throws SAXException
LexicalHandler.startDTD(String, String, String)
public void characters(java.lang.String characters) throws SAXException
characters
- The string of characters to process.ExtendedContentHandler.characters(String)
public void comment(java.lang.String comment) throws SAXException
ExtendedLexicalHandler.comment(String)
public void processingInstruction(java.lang.String target, java.lang.String data) throws SAXException
ContentHandler.processingInstruction(String, String)
public void startElement(java.lang.String arg0, java.lang.String arg1, java.lang.String arg2, Attributes arg3) throws SAXException
ContentHandler.startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
,
ContentHandler.endElement(java.lang.String, java.lang.String, java.lang.String)
,
AttributeList
,
ContentHandler.startElement(String,String,String,Attributes)
public void setLexHandler(LexicalHandler _lexHandler)
_lexHandler
- The LexicalHandler to setpublic void setContentHandler(ContentHandler _saxHandler)
_saxHandler
- The ContentHandler to setpublic void setCdataSectionElements(java.util.Vector URI_and_localNames)
XSLOutputAttributes.setCdataSectionElements(java.util.Vector)
public void setShouldOutputNSAttr(boolean doOutputNSAttr)
doOutputNSAttr
- whether or not namespace declarations
should appear as attributespublic void flushPending() throws SAXException
public void setTransformState(TransformStateSetter ts)
ts
- A reference to a TransformState objectpublic void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws SAXException
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)ExtendedContentHandler.startElement(String, String, String)
public void startElement(java.lang.String qName) throws SAXException
qName
- the element name, with prefix (if any).ExtendedContentHandler.startElement(String)
public void characters(Node node) throws SAXException
node
- the Node to serializepublic void fatalError(SAXParseException exc) throws SAXException
ErrorHandler.fatalError(SAXParseException)
public void error(SAXParseException exc) throws SAXException
ErrorHandler.error(SAXParseException)
public void warning(SAXParseException exc) throws SAXException
ErrorHandler.warning(SAXParseException)
public boolean reset()
Serializer.reset()
public void addUniqueAttribute(java.lang.String qName, java.lang.String value, int flags) throws SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |