java.lang.AutoCloseable, java.io.CloseableArrayInput, BinFileInput, BinInput, BufferingInputBase, CircularArrayInput, CircularListInput, LimitedQueueBuffer, ListInput, TextFileInput, TextStreamInputpublic interface Input<I>
extends java.io.Closeable
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
DELIMITER |
| Modifier and Type | Method | Description |
|---|---|---|
I |
get() |
Get next item
|
int |
get(java.util.List<I> buffer,
int limit) |
Bulk items get.
|
default java.util.List<I> |
getAll() |
Bulk items get method useful for remote invocation.
|
void |
reset() |
Reset this input making this readable from the beginning
|
long |
skip(long count) |
Skip some items.
|
static final java.lang.String DELIMITER
I get() throws java.io.EOFException, java.io.IOException
java.io.EOFException - if no item available morejava.io.IOException - if failed to get some-whyint get(java.util.List<I> buffer, int limit) throws java.io.IOException
buffer - buffer for the itemslimit - max count of the items to put into the bufferjava.io.EOFException - if no item available morejava.io.IOException - if failed to get some-whydefault java.util.List<I> getAll() throws java.io.IOException
java.io.EOFException - if not items available morejava.io.IOException - if failed to get for some reasonlong skip(long count) throws java.io.IOException
count - count of items should be skipped from the input streamjava.io.IOException - if failed to skip such amount of bytesvoid reset()
throws java.io.IOException
java.io.IOException