public class XmlRowWriter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
XmlRowWriter.ObjectFormatTransformer |
class |
XmlRowWriter.XmlWritingNodeVisitor
Visits nodes of mapping templates and writes data as XML.
|
Modifier and Type | Field and Description |
---|---|
protected boolean |
forSketch |
Constructor and Description |
---|
XmlRowWriter(java.io.OutputStream out,
java.lang.String commentHeader,
java.lang.String rootTag,
java.lang.String datePattern,
java.lang.String timestampPattern,
ScriptFormat scriptFormat,
java.nio.charset.Charset charset,
ExecutionContext executionContext)
Constructor.
|
XmlRowWriter(java.io.OutputStream out,
java.lang.String commentHeader,
java.lang.String rootTag,
java.lang.String datePattern,
java.lang.String timestampPattern,
ScriptFormat scriptFormat,
java.nio.charset.Charset charset,
javax.xml.transform.sax.TransformerHandler transformerHandler,
ExecutionContext executionContext)
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,
java.lang.String name)
Writes start element for a list of rows.
|
public XmlRowWriter(java.io.OutputStream out, java.lang.String commentHeader, java.lang.String rootTag, java.lang.String datePattern, java.lang.String timestampPattern, ScriptFormat scriptFormat, java.nio.charset.Charset charset, ExecutionContext executionContext) throws org.xml.sax.SAXException, javax.xml.transform.TransformerConfigurationException
out
- output stream to write the xml intocommentHeader
- comment at top of documentrootTag
- root tag namedatePattern
- pattern for datestimestampPattern
- pattern for time-stampsscriptFormat
- executionContext
- org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
public XmlRowWriter(java.io.OutputStream out, java.lang.String commentHeader, java.lang.String rootTag, java.lang.String datePattern, java.lang.String timestampPattern, ScriptFormat scriptFormat, java.nio.charset.Charset charset, javax.xml.transform.sax.TransformerHandler transformerHandler, ExecutionContext executionContext) throws org.xml.sax.SAXException, javax.xml.transform.TransformerConfigurationException
out
- output stream to write the xml intocommentHeader
- comment at top of documentrootTag
- root tag namedatePattern
- patt;ern for datestimestampPattern
- pattern for time-stampsscriptFormat
- executionContext
- org.xml.sax.SAXException
javax.xml.transform.TransformerConfigurationException
public void close() throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void startList(Association association, java.lang.String name) throws org.xml.sax.SAXException
association
- association describing the listname
- org.xml.sax.SAXException
public void endList(Association association) throws org.xml.sax.SAXException
association
- association describing the listorg.xml.sax.SAXException