Package org.smallmind.nutsnbolts.csv
Class CSVWriter
- java.lang.Object
-
- org.smallmind.nutsnbolts.csv.CSVWriter
-
- All Implemented Interfaces:
AutoCloseable
public class CSVWriter extends Object implements AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description CSVWriter(OutputStream outputStream, int lineLength)CSVWriter(OutputStream outputStream, String... headers)
-
-
-
Constructor Detail
-
CSVWriter
public CSVWriter(OutputStream outputStream, String... headers) throws IOException, CSVParseException
- Throws:
IOExceptionCSVParseException
-
CSVWriter
public CSVWriter(OutputStream outputStream, int lineLength)
-
-
Method Detail
-
write
public void write(String... fields) throws IOException, CSVParseException
- Throws:
IOExceptionCSVParseException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
-