org.databene.platform.script
Class ScriptedEntityExporter
java.lang.Object
org.databene.benerator.consumer.AbstractConsumer
org.databene.benerator.consumer.FormattingConsumer
org.databene.benerator.consumer.TextFileExporter
org.databene.platform.script.ScriptedEntityExporter
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, Consumer, FileExporter
public class ScriptedEntityExporter
- extends TextFileExporter
Script based entity exporter.
Three scripts may be combined for formatting header, generated document part(s) and footer
Created: 01.09.2007 18:05:04
- Author:
- Volker Bergmann
Methods inherited from class org.databene.benerator.consumer.TextFileExporter |
close, flush, getEncoding, getLineSeparator, getUri, initPrinter, isAppend, preClosePrinter, println, setAppend, setEncoding, setLineSeparator, setUri, startProductConsumption, toString |
Methods inherited from class org.databene.benerator.consumer.FormattingConsumer |
format, getDateCapitalization, getDatePattern, getDateTimePattern, getDecimalPattern, getDecimalSeparator, getIntegralPattern, getNullString, getTimePattern, getTimestampCapitalization, getTimestampPattern, setDateCapitalization, setDatePattern, setDateTimePattern, setDecimalPattern, setDecimalSeparator, setIntegralPattern, setNullString, setTimePattern, setTimestampCapitalization, setTimestampPattern |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ScriptedEntityExporter
public ScriptedEntityExporter()
ScriptedEntityExporter
public ScriptedEntityExporter(java.lang.String uri,
java.lang.String partScript)
ScriptedEntityExporter
public ScriptedEntityExporter(java.lang.String uri,
java.lang.String encoding,
java.lang.String headerScript,
java.lang.String partScript,
java.lang.String footerScript)
getHeaderScript
public java.lang.String getHeaderScript()
setHeaderScript
public void setHeaderScript(java.lang.String headerScript)
getPartScript
public java.lang.String getPartScript()
setPartScript
public void setPartScript(java.lang.String partScript)
getFooterScript
public java.lang.String getFooterScript()
setFooterScript
public void setFooterScript(java.lang.String footerScript)
postInitPrinter
protected void postInitPrinter(java.lang.Object object)
- Description copied from class:
TextFileExporter
- This method is called after printer initialization and before writing the first data entry.
Overwrite this method in child classes e.g. for writing a file header.
- Overrides:
postInitPrinter
in class TextFileExporter
- Parameters:
object
- the first data item to write to the file
startConsumingImpl
protected void startConsumingImpl(java.lang.Object object)
- Description copied from class:
TextFileExporter
- Writes the data to the output file.
It uses the parent class settings for rendering the object.
Overwrite this in a child class for custom output formats.
- Overrides:
startConsumingImpl
in class TextFileExporter
- Parameters:
object
- the data object to output
Copyright © 2013. All Rights Reserved.