com.agimatec.utility.fileimport.spreadsheet
Class ExcelRowReader
java.lang.Object
com.agimatec.utility.fileimport.spreadsheet.ExcelRowReader
- All Implemented Interfaces:
- LineReader<ExcelRow>
public class ExcelRowReader
- extends Object
- implements LineReader<ExcelRow>
Description: read a spreadsheet line by line (each line is a )
User: roman.stumm
Date: 11.06.2008
Time: 18:03:51
Copyright: Agimatec GmbH
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExcelRowReader
public ExcelRowReader()
getSheetIndex
public int getSheetIndex()
setSheetIndex
public void setSheetIndex(int sheetIndex)
setReader
public void setReader(Reader aReader)
throws IOException
- Specified by:
setReader in interface LineReader<ExcelRow>
- Parameters:
aReader -
- Throws:
UnsupportedOperationException - - no ReaderInputStream support implemented yet!
IOException
setStream
public void setStream(InputStream aReader)
throws IOException
- Specified by:
setStream in interface LineReader<ExcelRow>
- Throws:
IOException
readLine
public ExcelRow readLine()
throws IOException
- Specified by:
readLine in interface LineReader<ExcelRow>
- Returns:
- the next line or null if no more lines available.
- Throws:
IOException
init
protected void init()
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface LineReader<ExcelRow>
- Throws:
IOException
getFileSystem
public org.apache.poi.poifs.filesystem.POIFSFileSystem getFileSystem()
setFileSystem
public void setFileSystem(org.apache.poi.poifs.filesystem.POIFSFileSystem fileSystem)
getRowIterator
public Iterator<org.apache.poi.ss.usermodel.Row> getRowIterator()
setRowIterator
public void setRowIterator(Iterator<org.apache.poi.ss.usermodel.Row> rowIterator)
getSheet
public org.apache.poi.hssf.usermodel.HSSFSheet getSheet()
setSheet
public void setSheet(org.apache.poi.hssf.usermodel.HSSFSheet sheet)
getWorkbook
public org.apache.poi.hssf.usermodel.HSSFWorkbook getWorkbook()
setWorkbook
public void setWorkbook(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook)
Copyright © 2008-2011. All Rights Reserved.