se.optimatika.jexcel
Class InMemorySpreadsheet
java.lang.Object
se.optimatika.jexcel.InMemorySpreadsheet
- All Implemented Interfaces:
- Spreadsheet
public class InMemorySpreadsheet
- extends Object
- implements Spreadsheet
InMemorySpreadsheet
public InMemorySpreadsheet()
InMemorySpreadsheet
public InMemorySpreadsheet(InputStream aStream)
activateSheet
public void activateSheet(String aName)
- Specified by:
activateSheet
in interface Spreadsheet
getBooleanCellValue
public Boolean getBooleanCellValue()
- Specified by:
getBooleanCellValue
in interface Spreadsheet
getCellValue
public Object getCellValue()
getDateCellValue
public Date getDateCellValue()
- Specified by:
getDateCellValue
in interface Spreadsheet
getMatrixSheetValue
public BasicMatrix getMatrixSheetValue()
- Specified by:
getMatrixSheetValue
in interface Spreadsheet
getNumberCellValue
public Number getNumberCellValue()
- Specified by:
getNumberCellValue
in interface Spreadsheet
getSheetNames
public String[] getSheetNames()
- Specified by:
getSheetNames
in interface Spreadsheet
getStringCellValue
public String getStringCellValue()
- Specified by:
getStringCellValue
in interface Spreadsheet
goHome
public void goHome()
- Specified by:
goHome
in interface Spreadsheet
goTo
public void goTo(int aColumn,
int aRow)
- Specified by:
goTo
in interface Spreadsheet
goToFirstColumnOnNextRow
public void goToFirstColumnOnNextRow()
- Specified by:
goToFirstColumnOnNextRow
in interface Spreadsheet
goToFirstRowInNextColumn
public void goToFirstRowInNextColumn()
- Specified by:
goToFirstRowInNextColumn
in interface Spreadsheet
goToNextColumn
public void goToNextColumn()
- Specified by:
goToNextColumn
in interface Spreadsheet
goToNextRow
public void goToNextRow()
- Specified by:
goToNextRow
in interface Spreadsheet
setBooleanCellValue
public void setBooleanCellValue(Boolean aCellValue)
- Specified by:
setBooleanCellValue
in interface Spreadsheet
setBooleanColumnValues
public void setBooleanColumnValues(List<Boolean> someColumnValues)
- Specified by:
setBooleanColumnValues
in interface Spreadsheet
setBooleanRowValues
public void setBooleanRowValues(List<Boolean> someRowValues)
- Specified by:
setBooleanRowValues
in interface Spreadsheet
setDateCellValue
public void setDateCellValue(Date aCellValue)
- Specified by:
setDateCellValue
in interface Spreadsheet
setDateColumnValues
public void setDateColumnValues(List<Date> someColumnValues)
- Specified by:
setDateColumnValues
in interface Spreadsheet
setDateRowValues
public void setDateRowValues(List<Date> someRowValues)
- Specified by:
setDateRowValues
in interface Spreadsheet
setMatrixSheetValue
public void setMatrixSheetValue(BasicMatrix aSheetValue)
- Specified by:
setMatrixSheetValue
in interface Spreadsheet
setNumberCellValue
public void setNumberCellValue(Number aCellValue)
- Specified by:
setNumberCellValue
in interface Spreadsheet
setNumberCellValue
public void setNumberCellValue(Number aCellValue,
String aPattern)
- Specified by:
setNumberCellValue
in interface Spreadsheet
setNumberColumnValues
public void setNumberColumnValues(List<Number> someColumnValues)
- Specified by:
setNumberColumnValues
in interface Spreadsheet
setNumberRowValues
public void setNumberRowValues(List<Number> someRowValues)
- Specified by:
setNumberRowValues
in interface Spreadsheet
setStringCellValue
public void setStringCellValue(String aCellValue)
- Specified by:
setStringCellValue
in interface Spreadsheet
setStringColumnValues
public void setStringColumnValues(List<String> someColumnValues)
- Specified by:
setStringColumnValues
in interface Spreadsheet
setStringRowValues
public void setStringRowValues(List<String> someRowValues)
- Specified by:
setStringRowValues
in interface Spreadsheet
setTableSheetValue
public void setTableSheetValue(Table aSheetValue)
- Specified by:
setTableSheetValue
in interface Spreadsheet
toByteArray
public byte[] toByteArray()
- Specified by:
toByteArray
in interface Spreadsheet
toString
public String toString()
- Overrides:
toString
in class Object
writeToFile
public void writeToFile(File aFile)
- Specified by:
writeToFile
in interface Spreadsheet