Output<T>, java.io.Closeable, java.lang.AutoCloseableCircularListOutputpublic class ListOutput<T> extends java.lang.Object implements Output<T>
| Constructor | Description |
|---|---|
ListOutput(java.util.List<T> items) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
does nothing
|
ListInput<T> |
getInput() |
Make a
Input instance from this. |
int |
put(java.util.List<T> items) |
|
int |
put(java.util.List<T> buffer,
int from,
int to) |
Bulk put of the items from the specified buffer
|
boolean |
put(T item) |
Write the data item
|
java.lang.String |
toString() |
protected final java.util.List<T> items
public ListOutput(java.util.List<T> items)
public boolean put(T item) throws java.io.IOException
Outputpublic int put(java.util.List<T> buffer, int from, int to) throws java.io.IOException
public final int put(java.util.List<T> items) throws java.io.IOException
public ListInput<T> getInput() throws java.io.IOException
OutputInput instance from this.public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException - doesn't throwpublic java.lang.String toString()
toString in class java.lang.Object