|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opencrx.application.uses.org.apache.commons.csv.CSVPrinter
public class CSVPrinter
Prints values in a CSV format.
| Constructor Summary | |
|---|---|
CSVPrinter(Appendable out,
CSVFormat format)
Creates a printer that will print values to the given stream following the CSVFormat. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
flush()
Flushes the underlying stream. |
void |
print(Object value)
Prints the string as the next value on the line. |
void |
printComment(String comment)
Prints a comment on a new line among the delimiter separated values. |
void |
println()
Outputs the line separator. |
void |
printRecord(Iterable<?> values)
Prints a single line of delimiter separated values. |
void |
printRecord(Object... values)
Prints a single line of delimiter separated values. |
void |
printRecords(Iterable<?> values)
Prints all the objects in the given collection. |
void |
printRecords(Object[] values)
Prints all the objects in the given array. |
void |
printRecords(ResultSet resultSet)
Prints all the objects in the given JDBC result set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CSVPrinter(Appendable out,
CSVFormat format)
out - stream to which to print.format - the CSV format. If null the default format is used (CSVFormat.DEFAULT)
IllegalArgumentException - thrown if the parameters of the format are inconsistent| Method Detail |
|---|
public void println()
throws IOException
IOException
public void flush()
throws IOException
flush in interface FlushableIOException
public void printRecord(Object... values)
throws IOException
values - values to output.
IOException
public void printRecord(Iterable<?> values)
throws IOException
values - values to output.
IOException
public void printComment(String comment)
throws IOException
comment - the comment to output
IOException
public void print(Object value)
throws IOException
value - value to be output.
IOException - If an I/O error occurs
public void printRecords(Object[] values)
throws IOException
values - the values to print.
IOException - If an I/O error occurs
public void printRecords(Iterable<?> values)
throws IOException
values - the values to print.
IOException - If an I/O error occurs
public void printRecords(ResultSet resultSet)
throws SQLException,
IOException
resultSet - result set
the values to print.
IOException - If an I/O error occurs
SQLException
public void close()
throws IOException
close in interface CloseableIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||