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.
|
Workbook read(InputStream stream) throws IOException, ClassNotFoundException
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 foundvoid write(Workbook workbook, OutputStream stream) throws IOException
stream
- the output stream to which the workbook should be writtenIOException
- if the workbook could not be written correctly