com.northconcepts.datapipeline.excel
Class ExcelReader
java.lang.Object
com.northconcepts.datapipeline.core.DataEndpoint
com.northconcepts.datapipeline.core.DataReader
com.northconcepts.datapipeline.core.AbstractReader
com.northconcepts.datapipeline.excel.ExcelReader
public class ExcelReader
- extends AbstractReader
Obtains records from an excel document.
| Methods inherited from class com.northconcepts.datapipeline.core.DataEndpoint |
assertNotOpened, assertOpened, decrementRecordCount, exception, exception, exception, finalize, getDescription, getRecordCount, getRecordCountAsBigInteger, getRecordCountAsString, getState, incrementRecordCount, isClosed, isOpen, isRecordCountBigInteger, resetRecordCount, setDescription, toString |
ExcelReader
public ExcelReader(ExcelDocument document)
open
public void open()
- Description copied from class:
DataEndpoint
- Makes this endpoint ready for reading or writing.
- Overrides:
open in class AbstractReader
close
public void close()
throws DataException
- Description copied from class:
DataEndpoint
- Indicates that this endpoint has finished reading or writing.
- Overrides:
close in class DataEndpoint
- Throws:
DataException
getSheetName
public String getSheetName()
setSheetName
public ExcelReader setSheetName(String sheetName)
getSheetIndex
public int getSheetIndex()
setSheetIndex
public ExcelReader setSheetIndex(int sheetIndex)
getStartingColumn
public int getStartingColumn()
setStartingColumn
public ExcelReader setStartingColumn(int startingColumn)
isEvaluateExpressions
public boolean isEvaluateExpressions()
setEvaluateExpressions
public ExcelReader setEvaluateExpressions(boolean evaluateExpressions)
isUseSheetColumnCount
public boolean isUseSheetColumnCount()
setUseSheetColumnCount
public ExcelReader setUseSheetColumnCount(boolean useSheetColumnCount)
- Set whether to use the entire worksheet (or just the current row) when determining each record's field count. Default
is
false meaning each record may contain a different number of fields depending on the row.
fillRecord
protected boolean fillRecord(Record record)
throws Throwable
- Specified by:
fillRecord in class AbstractReader
- Throws:
Throwable
addExceptionProperties
public DataException addExceptionProperties(DataException exception)
- Description copied from class:
DataEndpoint
- Adds this endpoint's current state to a
DataException. Since this method is called whenever an
exception is thrown, subclasses should override it to add their specific information.
- Overrides:
addExceptionProperties in class AbstractReader
Copyright (c) 2007-2012 North Concepts Inc. All Rights Reserved.