Class XmlRowWriter
java.lang.Object
net.sf.jailer.xml.XmlRowWriter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceclassVisits nodes of mapping templates and writes data as XML. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionXmlRowWriter(OutputStream out, String commentHeader, String rootTag, String datePattern, String timestampPattern, ScriptFormat scriptFormat, Charset charset, TransformerHandler transformerHandler, ExecutionContext executionContext) Constructor.XmlRowWriter(OutputStream out, String commentHeader, String rootTag, String datePattern, String timestampPattern, ScriptFormat scriptFormat, Charset charset, ExecutionContext executionContext) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the writer.voidendList(Association association) Writes end element for a list of rows.voidstartList(Association association, String name) Writes start element for a list of rows.
-
Field Details
-
forSketch
protected boolean forSketch
-
-
Constructor Details
-
XmlRowWriter
public XmlRowWriter(OutputStream out, String commentHeader, String rootTag, String datePattern, String timestampPattern, ScriptFormat scriptFormat, Charset charset, ExecutionContext executionContext) throws SAXException, TransformerConfigurationException Constructor.- Parameters:
out- output stream to write the xml intocommentHeader- comment at top of documentrootTag- root tag namedatePattern- pattern for datestimestampPattern- pattern for time-stampsscriptFormat-executionContext-- Throws:
SAXExceptionTransformerConfigurationException
-
XmlRowWriter
public XmlRowWriter(OutputStream out, String commentHeader, String rootTag, String datePattern, String timestampPattern, ScriptFormat scriptFormat, Charset charset, TransformerHandler transformerHandler, ExecutionContext executionContext) throws SAXException, TransformerConfigurationException Constructor.- Parameters:
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-- Throws:
SAXExceptionTransformerConfigurationException
-
-
Method Details
-
close
-
startList
Writes start element for a list of rows.- Parameters:
association- association describing the listname-- Throws:
SAXException
-
endList
Writes end element for a list of rows.- Parameters:
association- association describing the list- Throws:
SAXException
-