public class IdxPrinter extends CsvPrinter<IdxRecord>
| Modifier | Constructor and Description |
|---|---|
protected |
IdxPrinter(org.apache.commons.csv.CSVPrinter printer)
Create with specifications of a
CSVPrinter. |
| Modifier and Type | Method and Description |
|---|---|
static IdxPrinter |
create(File csvFile)
Creates a
IdxPrinter, that writes CSV data into a File. |
static IdxPrinter |
create(OutputStream output)
Creates a
IdxPrinter, that writes CSV data into an
OutputStream. |
static IdxPrinter |
create(StringBuffer csvString)
Creates a
IdxPrinter, that writes CSV data into a
StringBuffer. |
static IdxPrinter |
create(StringBuilder csvString)
Creates a
IdxPrinter, that writes CSV data into a
StringBuilder. |
static IdxPrinter |
create(Writer output)
Creates a
IdxPrinter, that writes CSV data into a Writer. |
protected void |
print(String value)
Prints a single CSV value.
|
close, closeQuietly, flush, printComment, println, printRecord, printRecords, replaceLineBreaks, replaceLineBreaksprotected IdxPrinter(org.apache.commons.csv.CSVPrinter printer)
CSVPrinter.printer - the CSV printer from
commons-csvpublic static IdxPrinter create(StringBuffer csvString) throws IOException
IdxPrinter, that writes CSV data into a
StringBuffer.csvString - where CSV is written toIOException - if CSV is not writablepublic static IdxPrinter create(StringBuilder csvString) throws IOException
IdxPrinter, that writes CSV data into a
StringBuilder.csvString - where CSV is written toIOException - if CSV is not writablepublic static IdxPrinter create(File csvFile) throws IOException
IdxPrinter, that writes CSV data into a File.csvFile - where CSV is written toIOException - if CSV is not writablepublic static IdxPrinter create(OutputStream output) throws IOException
IdxPrinter, that writes CSV data into an
OutputStream.output - where CSV is written toIOException - if CSV is not writablepublic static IdxPrinter create(Writer output) throws IOException
IdxPrinter, that writes CSV data into a Writer.output - where CSV is written toIOException - if CSV is not writableprotected void print(String value) throws IOException
CsvPrinterprint in class CsvPrinter<IdxRecord>value - CSV value to printIOException - if printing failedCopyright © 2015 OpenEstate. All rights reserved.