| Modifier and Type | Field and Description |
|---|---|
| protected PyObject | converters
Field converters |
| protected String | delimiter
Field delimiter |
| protected boolean | header
Field header |
| protected PrintWriter | writer
Field writer |
| Access | Constructor and Description |
|---|---|
| public | CSVSink(PrintWriter
the PrintWriter to which data will be written writer)All data will be written to the given PrintWriter. |
| public | CSVSink(PrintWriter
the PrintWriter to which data will be written writer, PyObject an indexed dictionary of callable objects used for converting objects to strings converters)All data will be written to the given PrintWriter. |
| Modifier and Type | Method and Description |
|---|---|
| protected String | |
| public void | |
| protected void | |
| public void | row(PyObject row)
Implements com. Handle the data callback and write the row out. |
| public void |
| converters | back to summary |
|---|---|
| protected PyObject converters Field converters | |
| delimiter | back to summary |
|---|---|
| protected String delimiter Field delimiter | |
| header | back to summary |
|---|---|
| protected boolean header Field header | |
| writer | back to summary |
|---|---|
| protected PrintWriter writer Field writer | |
| CSVSink | back to summary |
|---|---|
| public CSVSink(PrintWriter writer) All data will be written to the given PrintWriter.
| |
| CSVSink | back to summary |
|---|---|
| public CSVSink(PrintWriter writer, PyObject converters) All data will be written to the given PrintWriter. If the converters param is not None, then an attempt will be made to convert the object using the given converter.
| |
| convert | back to summary |
|---|---|
| protected String convert(PyObject index, PyObject object) Convert the object at index to a String. | |
| end | back to summary |
|---|---|
| public void end() Implements com. Method end | |
| println | back to summary |
|---|---|
| protected void println(String[] row) Print the row of Strings. | |
| row | back to summary |
|---|---|
| public void row(PyObject row) Implements com. Handle the data callback and write the row out. | |
| start | back to summary |
|---|---|
| public void start() Implements com. Method start | |