org.topbraid.spreadsheets
Interface Spreadsheet

All Known Implementing Classes:
TabbedFileSpreadsheet

public interface Spreadsheet

An interface for objects that can wrap a spreadsheet, which may for example be stored in a file.

Author:
Holger Knublauch

Method Summary
 java.lang.String[] getColumnNames()
          Gets the names of all columns in the spreadsheet.
 Spreadsheet getCopy()
           
 java.lang.Object getSpreadsheetSource()
           
 java.util.Iterator listRows()
          Gets an Iterator of all rows in the spreadsheet, where each row is represented as an array of Strings.
 

Method Detail

getColumnNames

java.lang.String[] getColumnNames()
                                  throws java.io.IOException
Gets the names of all columns in the spreadsheet.

Returns:
the names of the columns
Throws:
java.io.IOException

listRows

java.util.Iterator listRows()
                            throws java.io.IOException
Gets an Iterator of all rows in the spreadsheet, where each row is represented as an array of Strings.

Returns:
an Iterator of String[]
Throws:
java.io.IOException

getSpreadsheetSource

java.lang.Object getSpreadsheetSource()
Returns:
source if the spreadsheet is constructed from a source

getCopy

Spreadsheet getCopy()
                    throws java.io.IOException
Throws:
java.io.IOException