Modifier and Type | Field and Description |
---|---|
protected PyObject |
converters
Field converters
|
protected java.lang.String |
delimiter
Field delimiter
|
protected boolean |
header
Field header
|
protected java.io.PrintWriter |
writer
Field writer
|
Constructor and Description |
---|
CSVSink(java.io.PrintWriter writer)
All data will be written to the given PrintWriter.
|
CSVSink(java.io.PrintWriter writer,
PyObject converters)
All data will be written to the given PrintWriter.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
convert(PyObject index,
PyObject object)
Convert the object at index to a String.
|
void |
end()
Method end
|
protected void |
println(java.lang.String[] row)
Print the row of Strings.
|
void |
row(PyObject row)
Handle the data callback and write the row out.
|
void |
start()
Method start
|
protected boolean header
protected java.lang.String delimiter
protected java.io.PrintWriter writer
protected PyObject converters
public CSVSink(java.io.PrintWriter writer)
writer
- the PrintWriter to which data will be writtenpublic CSVSink(java.io.PrintWriter writer, PyObject converters)
writer
- the PrintWriter to which data will be writtenconverters
- an indexed dictionary of callable objects used for converting objects to strings