AutoCloseable
public interface RowReader<T> extends AutoCloseable
RowReader
reads a set of elements (a row) elements for an external
source.Modifier and Type | Method | Description |
---|---|---|
boolean |
hasNext() |
Determines whether a next element can be read.
|
T |
readNext() |
Reads the next element.
|
close
boolean hasNext()
T readNext() throws IOException
IOException
- thrown in case there was an I/O related problem.NoSuchElementException
- thrown in case there is none next element
to be read (check with hasNext()
if there is actually a
next element which can be read).Copyright © 2021. All rights reserved.