Constructor and Description |
---|
CLSCodec()
Creates a new CleanSheets 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 CLSCodec()
public Workbook read(InputStream stream) throws IOException, ClassNotFoundException
Codec
read
in interface Codec
stream
- the input stream from which the workbook should be readIOException
- if the workbook could not be read correctlyClassNotFoundException
- If the class of a serialized object could not be foundpublic 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