org.databene.platform.flat
Class FlatFileEntityExporter
java.lang.Object
org.databene.model.consumer.AbstractConsumer<E>
org.databene.model.consumer.FormattingConsumer<E>
org.databene.model.consumer.TextFileExporter<Entity>
org.databene.platform.flat.FlatFileEntityExporter
- All Implemented Interfaces:
- java.io.Closeable, Consumer<Entity>, FileExporter<Entity>
public class FlatFileEntityExporter
- extends TextFileExporter<Entity>
Exports Entities to flat files.
Created: 26.08.2007 06:17:41
- Author:
- Volker Bergmann
| Methods inherited from class org.databene.model.consumer.FormattingConsumer |
format, getDatePattern, getDateTimePattern, getDecimalPattern, getDecimalSeparator, getIntegralPattern, getNullString, getTimePattern, getTimestampPattern, setDatePattern, setDateTimePattern, setDecimalPattern, setDecimalSeparator, setIntegralPattern, setNullString, setTimePattern, setTimestampPattern |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FlatFileEntityExporter
public FlatFileEntityExporter()
FlatFileEntityExporter
public FlatFileEntityExporter(java.lang.String uri,
java.lang.String columnFormatList)
FlatFileEntityExporter
public FlatFileEntityExporter(java.lang.String uri,
java.lang.String encoding,
java.lang.String columnFormatList)
setColumns
public void setColumns(java.lang.String columnFormatList)
flush
public void flush()
- Specified by:
flush in interface Consumer<Entity>- Overrides:
flush in class TextFileExporter<Entity>
close
public void close()
- Specified by:
close in interface java.io.Closeable- Specified by:
close in interface Consumer<Entity>- Overrides:
close in class TextFileExporter<Entity>
postInitPrinter
protected void postInitPrinter(Entity entity)
- 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<Entity>
- Parameters:
entity - the first data item to write to the file
startConsumingImpl
protected void startConsumingImpl(Entity entity)
- 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<Entity>
- Parameters:
entity - the data object to output
toString
public java.lang.String toString()
- Overrides:
toString in class TextFileExporter<Entity>
Copyright © 2011. All Rights Reserved.