Package org.openforis.commons.io.flat
Class FlatDataWriter
java.lang.Object
org.openforis.commons.io.csv.CsvProcessor
org.openforis.commons.io.flat.FlatDataWriter
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
CsvWriter,ExcelFlatValuesWriter
- Author:
- G. Miceli, S. Ricci
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclose()abstract voidflush()longbooleanvoidvoidwriteHeaders(String[] headers) voidwriteHeaders(List<String> headers) voidwriteHeaders(Field[] fields) voidvoidvoidprotected abstract voidwriteNextInternal(Object[] line) Methods inherited from class org.openforis.commons.io.csv.CsvProcessor
getDateFormat, getFieldNames, getFields, setDateFormat, setDateFormat, setFieldNames, setFields, setFields
-
Field Details
-
linesWritten
protected long linesWritten -
headersWritten
protected boolean headersWritten
-
-
Constructor Details
-
FlatDataWriter
public FlatDataWriter()
-
-
Method Details
-
writeAll
- Throws:
IOException
-
flush
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
writeNext
-
writeNext
-
writeNext
-
writeNextInternal
-
writeHeaders
-
writeHeaders
-
writeHeaders
-
getLinesWritten
public long getLinesWritten() -
isHeadersWritten
public boolean isHeadersWritten()
-