de.smartics.properties.config.transfer.templatestream
Class CsvFactory
java.lang.Object
de.smartics.properties.config.transfer.templatestream.Factory
de.smartics.properties.config.transfer.templatestream.CsvFactory
-
All Implemented Interfaces:
-
PropertySinkFactory<
StreamPropertySink>
-
public final class CsvFactory
-
extends
Factory
Creates instances of StreamPropertySink
by providing a template to generate a CSV document.
Constructor Summary |
CsvFactory() Default constructor. |
Methods inherited from class de.smartics.properties.config.transfer.templatestream.Factory |
getEncoding, setConfigColumn, setDocumentExtro, setDocumentIntro, setEncoding, setEscaper, setEscaperType, setFile, setLineExtro, setLineIntro, setNameColumn, setStream, setTable, setTemplate, setValueColumn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CsvFactory
public CsvFactory()
-
Default constructor.
setWriteHeader
public void setWriteHeader(boolean writeHeader)
-
Sets the flag controls whether (
true
) or not (
false
) write a CSV header for columns.
-
-
Parameters:
-
writeHeader
- the flag controls whether (
true
) or not (
false
) write a CSV header for columns.
create
public StreamPropertySink create()
throws IllegalStateException
-
Description copied from class:
Factory
-
Creates an instance of
PropertySink
.
-
-
Specified by:
-
create
in interface
PropertySinkFactory<StreamPropertySink>
-
Overrides:
-
create
in class
Factory
-
-
Returns:
-
an instance of
PropertySink
.
-
Throws:
-
IllegalStateException
Copyright © 2012-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.