public abstract class BufferedStreamIterator<R extends Row> extends Object implements Iterator<R>
| Constructor and Description |
|---|
BufferedStreamIterator(InputStream stream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
closes this iterator
|
protected String |
getLine() |
protected abstract R |
getNext()
Reads the csv input stream and returns a row
|
boolean |
hasNext()
Returns true if last row is not reached yet
|
protected void |
loadNext() |
R |
next()
Returns the next row.
|
void |
remove()
Remove is not supported
|
void |
skip(int rows)
skips rows
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic BufferedStreamIterator(InputStream stream)
protected void loadNext()
protected String getLine() throws IOException
IOExceptionpublic void skip(int rows)
rows - number of rows to be skippedpublic void close()
protected abstract R getNext()
public boolean hasNext()
public R next()
Copyright © 2017. All rights reserved.