| Modifier and Type | Field and Description |
|---|---|
protected ExporterConfiguration<E> |
configuration
Exporter configuration.
|
protected byte[] |
currentRow
Current row to export as an array of bytes.
|
protected int |
currentRowPosition
Position to read in the current row array.
|
protected Iterator<E> |
dataIterator
Data to export.
|
protected boolean |
firstRowConsumed
Is the first row was consumed ?
|
protected int |
nbCellsPerRow
Number of cells per row.
|
protected boolean |
writeHeader
Write header ?
|
| Modifier | Constructor and Description |
|---|---|
protected |
ExporterAction(ExporterConfiguration<E> configuration,
boolean writeHeader,
Iterable<E> data) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCellToRowBuilder(StringBuilder rowBuilder,
int index,
String formattedCell,
String cellSeparator) |
void |
export(OutputStream outputStream) |
void |
export(Writer writer) |
protected static <E> Exporter.ExporterAction<E> |
of(ExporterConfiguration<E> configuration,
Iterable<E> data,
boolean writeHeader) |
protected byte[] |
readFirstRowOrGetCurrentRow() |
protected void |
readHeader() |
protected byte[] |
readNextRow() |
protected byte[] |
readRow(E row) |
protected byte[] |
toCurrentRow(StringBuilder rowBuilder) |
InputStream |
toInputStream() |
Reader |
toReader() |
protected final boolean writeHeader
protected final ExporterConfiguration<E> configuration
protected final int nbCellsPerRow
protected boolean firstRowConsumed
protected byte[] currentRow
protected int currentRowPosition
protected ExporterAction(ExporterConfiguration<E> configuration, boolean writeHeader, Iterable<E> data)
protected static <E> Exporter.ExporterAction<E> of(ExporterConfiguration<E> configuration, Iterable<E> data, boolean writeHeader)
public void export(OutputStream outputStream) throws IOException
IOExceptionpublic void export(Writer writer) throws IOException
IOExceptionpublic InputStream toInputStream()
public Reader toReader()
protected byte[] readFirstRowOrGetCurrentRow()
protected byte[] readNextRow()
protected void readHeader()
protected void addCellToRowBuilder(StringBuilder rowBuilder, int index, String formattedCell, String cellSeparator)
protected byte[] toCurrentRow(StringBuilder rowBuilder)
Copyright © 2013–2016 CodeLutin. All rights reserved.