public class XmlRowWriter extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
XmlRowWriter.XmlWritingNodeVisitor
Visits nodes of mapping templates and writes data as XML.
|
| Constructor and Description |
|---|
XmlRowWriter(OutputStream out,
String commentHeader,
String rootTag,
String datePattern,
String timestampPattern,
Charset charset)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the writer.
|
void |
endList(Association association)
Writes end element for a list of rows.
|
void |
startList(Association association)
Writes start element for a list of rows.
|
public XmlRowWriter(OutputStream out, String commentHeader, String rootTag, String datePattern, String timestampPattern, Charset charset) throws SAXException, TransformerConfigurationException
out - output stream to write the xml intocommentHeader - comment at top of documentrootTag - root tag namedatePattern - pattern for datestimestampPattern - pattern for time-stampsSAXExceptionTransformerConfigurationExceptionpublic void close()
throws SAXException
SAXExceptionpublic void startList(Association association) throws SAXException
association - association describing the listSAXExceptionpublic void endList(Association association) throws SAXException
association - association describing the listSAXException