public abstract class CsvItemOutput<I extends Item>
extends java.lang.Object
implements com.github.akurilov.commons.io.Output<I>
| Modifier and Type | Field and Description |
|---|---|
protected ItemFactory<I> |
itemFactory |
protected java.io.BufferedWriter |
itemsDst |
| Modifier | Constructor and Description |
|---|---|
protected |
CsvItemOutput(java.io.OutputStream out,
ItemFactory<I> itemFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
put(I item) |
int |
put(java.util.List<I> items) |
int |
put(java.util.List<I> buffer,
int from,
int to) |
java.lang.String |
toString() |
protected final ItemFactory<I extends Item> itemFactory
protected final java.io.BufferedWriter itemsDst
protected CsvItemOutput(java.io.OutputStream out,
ItemFactory<I> itemFactory)
throws java.io.IOException
java.io.IOExceptionpublic boolean put(I item) throws java.io.IOException
public int put(java.util.List<I> buffer, int from, int to) throws java.io.IOException
public final int put(java.util.List<I> items) throws java.io.IOException
public 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