Package org.openforis.commons.io.excel
Class ExcelFlatValuesWriter
- java.lang.Object
-
- org.openforis.commons.io.csv.CsvProcessor
-
- org.openforis.commons.io.flat.FlatDataWriter
-
- org.openforis.commons.io.excel.ExcelFlatValuesWriter
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ExcelFlatValuesWriter extends FlatDataWriter
-
-
Field Summary
-
Fields inherited from class org.openforis.commons.io.flat.FlatDataWriter
headersWritten, linesWritten
-
-
Constructor Summary
Constructors Constructor Description ExcelFlatValuesWriter(OutputStream output)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()protected voidsetValueIntoCell(org.apache.poi.ss.usermodel.Cell cell, Field field, Object value)protected voidwriteNextInternal(Object[] values)-
Methods inherited from class org.openforis.commons.io.flat.FlatDataWriter
getLinesWritten, isHeadersWritten, writeAll, writeHeaders, writeHeaders, writeNext, writeNext, writeNext
-
Methods inherited from class org.openforis.commons.io.csv.CsvProcessor
getDateFormat, getFieldNames, getFields, setDateFormat, setDateFormat, setFieldNames, setFields, setFields
-
-
-
-
Constructor Detail
-
ExcelFlatValuesWriter
public ExcelFlatValuesWriter(OutputStream output) throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
-
-
Method Detail
-
writeNextInternal
protected void writeNextInternal(Object[] values)
- Specified by:
writeNextInternalin classFlatDataWriter
-
setValueIntoCell
protected void setValueIntoCell(org.apache.poi.ss.usermodel.Cell cell, Field field, Object value)
-
flush
public void flush() throws IOException- Specified by:
flushin classFlatDataWriter- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classFlatDataWriter- Throws:
IOException
-
-