public class NewItemInput<I extends Item>
extends java.lang.Object
implements com.github.akurilov.commons.io.Input<I>
| Modifier and Type | Field and Description |
|---|---|
protected IdStringInput |
idInput |
protected ItemFactory<I> |
itemFactory |
| Constructor and Description |
|---|
NewItemInput(ItemFactory<I> itemFactory,
IdStringInput idInput) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
I |
get() |
int |
get(java.util.List<I> buffer,
int maxCount) |
void |
reset() |
long |
skip(long itemsCount)
Skips the specified count of the new item ids
|
java.lang.String |
toString() |
protected final ItemFactory<I extends Item> itemFactory
protected final IdStringInput idInput
public NewItemInput(ItemFactory<I> itemFactory, IdStringInput idInput)
public I get() throws java.io.IOException
public int get(java.util.List<I> buffer, int maxCount) throws java.io.IOException
public final long skip(long itemsCount)
throws java.io.IOException
public final void reset()
throws java.io.IOException
public final void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object