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
Modifier and TypeFieldDescriptionprotected org.apache.commons.csv.CSVPrinter
protected org.apache.commons.io.output.AppendableOutputStream<Appendable>
-
Constructor Summary
-
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:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
getCsvPrinter
public org.apache.commons.csv.CSVPrinter getCsvPrinter()Returns the wrapped CSV printer.- Returns:
- the CSV printer
-
toString
-