-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
ArrayInput,BinFileInput,BinInput,BufferingInputBase,CircularArrayInput,CircularListInput,LimitedQueueBuffer,ListInput,TextFileInput,TextStreamInput
public interface Input<I> extends java.io.CloseableThe Java objects input supporting the batch calls
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDELIMITER
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Iget()Get next itemintget(java.util.List<I> buffer, int limit)Bulk items get.voidreset()Reset this input making this readable from the beginninglongskip(long count)Skip some items.
-
-
-
Field Detail
-
DELIMITER
static final java.lang.String DELIMITER
- See Also:
- Constant Field Values
-
-
Method Detail
-
get
I get() throws java.io.EOFException, java.io.IOException
Get next item- Returns:
- next item or null if no items available more
- Throws:
java.io.EOFException- if no item available morejava.io.IOException- if failed to get some-why
-
get
int get(java.util.List<I> buffer, int limit) throws java.io.IOException
Bulk items get.- Parameters:
buffer- buffer for the itemslimit- max count of the items to put into the buffer- Returns:
- count of the items have been get and put into the buffer actually
- Throws:
java.io.EOFException- if no item available morejava.io.IOException- if failed to get some-why
-
skip
long skip(long count) throws java.io.IOException
Skip some items.- Parameters:
count- count of items should be skipped from the input stream- Throws:
java.io.IOException- if failed to skip such amount of bytes
-
reset
void reset() throws java.io.IOExceptionReset this input making this readable from the beginning- Throws:
java.io.IOException
-
-