Class OutputStreamWithCSVWriter
java.lang.Object
java.io.OutputStream
org.nuxeo.ecm.core.io.marshallers.csv.OutputStreamWithCSVWriter
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Wrapper for
CSVPrinter.- Since:
- 10.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.commons.csv.CSVPrinterprotected org.apache.commons.io.output.AppendableOutputStream<Appendable> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Field Details
-
out
-
csvPrinter
protected org.apache.commons.csv.CSVPrinter csvPrinter
-
-
Constructor Details
-
OutputStreamWithCSVWriter
public OutputStreamWithCSVWriter() -
OutputStreamWithCSVWriter
public OutputStreamWithCSVWriter(org.apache.commons.csv.CSVPrinter csvPrinter)
-
-
Method Details
-
setCSVPrinter
public void setCSVPrinter(org.apache.commons.csv.CSVPrinter csvPrinter) -
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
getCsvPrinter
public org.apache.commons.csv.CSVPrinter getCsvPrinter()Returns the wrapped CSV printer.- Returns:
- the CSV printer
-
toString
-