|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object olg.csv.base.IgnoreNullReader
public class IgnoreNullReader
A "Proxy" reader which Provides a mecanism to skip empty row.
Field Summary | |
---|---|
private Row |
currentRow
the last row retrieved from the original reader. |
private ReaderException |
exception
because next() method even if returns the next element, loads the following row. |
private static org.slf4j.Logger |
LOGGER
The class logger. |
private boolean |
next
|
private IReader |
reader
the original reader. |
Constructor Summary | |
---|---|
IgnoreNullReader(IReader reader)
|
Method Summary | |
---|---|
void |
close()
close the original reader. |
boolean |
hasNext()
|
boolean |
isWithHeaders()
Indicates if the file has a headers line. |
Row |
next()
|
void |
remove()
Throws UnsupportedOperationException. |
private Row |
setNext()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final org.slf4j.Logger LOGGER
private final IReader reader
private Row currentRow
private boolean next
private ReaderException exception
Constructor Detail |
---|
public IgnoreNullReader(IReader reader)
reader
- a concret readerMethod Detail |
---|
public boolean hasNext()
hasNext
in interface Iterator<Row>
public Row next()
next
in interface Iterator<Row>
private Row setNext()
public void remove()
remove
in interface Iterator<Row>
public void close()
close
in interface Closeable
public boolean isWithHeaders()
IReader
isWithHeaders
in interface IReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |