public class ImportAdapterCSV extends ImportAdapter
ImportConfigurationCSV object. Internally
this class makes use of CSVDataInput to read the CSV file on a line
by line basis. A counting input stream (@link CountingInputStream} is used in
order for {@link #getProgress() to be able to return the percentage of data
that has already been processed.| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getLength()
Returns the number of records, if available, null otherwise
|
int |
getProgress()
Returns the percentage of data that has already been returned
This divides the amount of bytes that have already been read by the
amount of total bytes and casts the result into a percentage.
|
boolean |
hasNext()
|
java.lang.String[] |
next()
Returns the next row
The returned element is sorted as defined by
ImportColumn#index and contains as many elements as there are columns selected to import
from ImportAdapter.indexes. |
void |
remove()
Dummy.
|
create, getConfig, getHeaderpublic java.lang.Integer getLength()
ImportAdaptergetLength in class ImportAdapterpublic int getProgress()
getProgress in class ImportAdapterpublic boolean hasNext()
row during the last iteration of next().public java.lang.String[] next()
ImportColumn#index and contains as many elements as there are columns selected to import
from ImportAdapter.indexes. The first row will always contain the names of the
columns. headerReturned is used to keep track of that.public void remove()