Modifier and Type | Field and Description |
---|---|
static String |
SEPARATOR
The string used to separate the content of different cells
|
Constructor and Description |
---|
CSVCodec()
Creates a new CSV codec.
|
Modifier and Type | Method and Description |
---|---|
Workbook |
read(InputStream stream)
Reads a workbook from the given input stream.
|
void |
write(Workbook workbook,
OutputStream stream)
Writes a workbook to the given output stream.
|
public static final String SEPARATOR
public CSVCodec()
public Workbook read(InputStream stream) throws IOException
Codec
read
in interface Codec
stream
- the input stream from which the workbook should be readIOException
- if the workbook could not be read correctlypublic void write(Workbook workbook, OutputStream stream) throws IOException
Codec
write
in interface Codec
stream
- the output stream to which the workbook should be writtenIOException
- if the workbook could not be written correctly