csheets.io
Interface Codec

All Known Implementing Classes:
CLSCodec, CSVCodec

public interface Codec

An interface for classes capable of reading and writing workbooks.

Author:
Einar Pehrson

Method Summary
 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.
 

Method Detail

read

Workbook read(InputStream stream)
              throws IOException,
                     ClassNotFoundException
Reads a workbook from the given input stream.

Parameters:
stream - the input stream from which the workbook should be read
Throws:
IOException - if the workbook could not be read correctly
ClassNotFoundException - If the class of a serialized object could not be found

write

void write(Workbook workbook,
           OutputStream stream)
           throws IOException
Writes a workbook to the given output stream.

Parameters:
stream - the output stream to which the workbook should be written
Throws:
IOException - if the workbook could not be written correctly