public class ListInput<T> extends java.lang.Object implements Input<T>
| Modifier and Type | Field and Description |
|---|---|
protected int |
i |
protected java.util.List<T> |
items |
protected int |
size |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Does nothing
|
T |
get()
Get next item
|
int |
get(java.util.List<T> buffer,
int maxCount)
Bulk get into the specified buffer
|
void |
reset()
Reset this input making this readable from the beginning
|
long |
skip(long itemsCount)
Skip some items.
|
java.lang.String |
toString() |
protected final java.util.List<T> items
protected int size
protected int i
public ListInput(java.util.List<T> items)
public T get() throws java.io.EOFException, java.io.IOException
Inputpublic int get(java.util.List<T> buffer, int maxCount) throws java.io.EOFException, java.io.IOException
public void reset()
throws java.io.IOException
Inputpublic long skip(long itemsCount)
throws java.io.IOException
Inputpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException - doesn't throwpublic java.lang.String toString()
toString in class java.lang.Object