|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.betwixt.io.AbstractBeanWriter org.apache.commons.betwixt.io.SAXBeanWriter
public class SAXBeanWriter
The SAXBeanwriter will send events to a ContentHandler
Constructor Summary | |
---|---|
SAXBeanWriter(org.xml.sax.ContentHandler contentHandler)
Constructor sets writer used for output. |
Method Summary | |
---|---|
protected void |
bodyText(WriteContext context,
java.lang.String text)
Express body text |
void |
end()
This method will announce the end of the document to the contenthandler. |
protected void |
endElement(WriteContext context,
java.lang.String uri,
java.lang.String localName,
java.lang.String qName)
Writes the end tag for an element |
boolean |
getCallDocumentEvents()
Should document events (ie start and end) be called? |
org.apache.commons.logging.Log |
getLog()
Set the log implementation used. |
void |
setCallDocumentEvents(boolean callDocumentEvents)
Sets whether the document events (ie start and end) should be called. |
void |
setLog(org.apache.commons.logging.Log log)
Set the log implementation used. |
void |
start()
This will announce the start of the document to the contenthandler. |
protected void |
startElement(WriteContext context,
java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes attributes)
Writes the start tag for an element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SAXBeanWriter(org.xml.sax.ContentHandler contentHandler)
Constructor sets writer used for output.
contentHandler
- feed events to this content handlerMethod Detail |
---|
public boolean getCallDocumentEvents()
public void setCallDocumentEvents(boolean callDocumentEvents)
callDocumentEvents
- should document events be calledpublic org.apache.commons.logging.Log getLog()
Set the log implementation used.
Log
implementation that this class logs topublic void setLog(org.apache.commons.logging.Log log)
Set the log implementation used.
log
- Log
implementation to useprotected void startElement(WriteContext context, java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
startElement
in class AbstractBeanWriter
uri
- the element's namespace urilocalName
- the element's local nameqName
- the element's qualified nameattributes
- the element's attributes
org.xml.sax.SAXException
- if an SAX problem occurs during writingprotected void endElement(WriteContext context, java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in class AbstractBeanWriter
uri
- the element's namespace urilocalName
- the element's local nameqName
- the element's qualified name
org.xml.sax.SAXException
- if an SAX problem occurs during writingprotected void bodyText(WriteContext context, java.lang.String text) throws org.xml.sax.SAXException
bodyText
in class AbstractBeanWriter
text
- the element body text
org.xml.sax.SAXException
- if the ContentHandler
has a problempublic void start() throws org.xml.sax.SAXException
start
in class AbstractBeanWriter
org.xml.sax.SAXException
- if an SAX problem occurs during writingAbstractBeanWriter.end()
public void end() throws org.xml.sax.SAXException
end
in class AbstractBeanWriter
org.xml.sax.SAXException
- if an SAX problem occurs during writingAbstractBeanWriter.start()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |