|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.io.input.AbstractSpreadSheetReader
adams.data.io.input.AbstractMultiSheetSpreadSheetReader
public abstract class AbstractMultiSheetSpreadSheetReader
Ancestor for spreadsheet readers that can read multiple sheets from a document in one go.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class adams.data.io.input.AbstractSpreadSheetReader |
|---|
AbstractSpreadSheetReader.InputType |
| Field Summary | |
|---|---|
protected Range |
m_SheetRange
the range of sheets to load. |
| Fields inherited from class adams.data.io.input.AbstractSpreadSheetReader |
|---|
m_DataRowType, m_Stopped |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractMultiSheetSpreadSheetReader()
|
|
| Method Summary | |
|---|---|
void |
defineOptions()
Adds options to the internal list of options. |
protected SpreadSheet |
doRead(File file)
Performs the actual reading. |
protected SpreadSheet |
doRead(InputStream in)
Performs the actual reading. |
protected SpreadSheet |
doRead(Reader r)
Performs the actual reading. |
protected List<SpreadSheet> |
doReadRange(File file)
Performs the actual reading. |
protected List<SpreadSheet> |
doReadRange(InputStream in)
Performs the actual reading. |
protected List<SpreadSheet> |
doReadRange(Reader r)
Performs the actual reading. |
Range |
getSheetRange()
Returns the range of the sheets to load. |
List<SpreadSheet> |
readRange(File file)
Reads the spreadsheet from the specified file. |
List<SpreadSheet> |
readRange(InputStream stream)
Reads the spreadsheets from the stream. |
List<SpreadSheet> |
readRange(Reader r)
Reads the spreadsheets from the given reader. |
List<SpreadSheet> |
readRange(String filename)
Reads the spreadsheets from the given file. |
void |
setSheetRange(Range value)
Sets the range of the sheets to load. |
String |
sheetRangeTipText()
Returns the tip text for this property. |
| Methods inherited from class adams.data.io.input.AbstractSpreadSheetReader |
|---|
check, dataRowTypeTipText, getDataRowType, getDefaultDataRowType, getFormatDescription, getFormatExtensions, getInputType, getReaders, isStopped, read, read, read, read, setDataRowType, stopExecution |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface adams.data.io.input.SpreadSheetReader |
|---|
dataRowTypeTipText, getDataRowType, getFormatDescription, getFormatExtensions, isStopped, read, read, read, read, setDataRowType, stopExecution |
| Methods inherited from interface adams.core.option.OptionHandler |
|---|
cleanUpOptions, getOptionManager |
| Methods inherited from interface adams.core.Destroyable |
|---|
destroy |
| Field Detail |
|---|
protected Range m_SheetRange
| Constructor Detail |
|---|
public AbstractMultiSheetSpreadSheetReader()
| Method Detail |
|---|
public void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractSpreadSheetReaderpublic void setSheetRange(Range value)
setSheetRange in interface MultiSheetSpreadSheetReadervalue - the range (1-based)public Range getSheetRange()
getSheetRange in interface MultiSheetSpreadSheetReaderpublic String sheetRangeTipText()
sheetRangeTipText in interface MultiSheetSpreadSheetReaderpublic List<SpreadSheet> readRange(File file)
readRange in interface MultiSheetSpreadSheetReaderfile - the file to read from
public List<SpreadSheet> readRange(String filename)
readRange in interface MultiSheetSpreadSheetReaderfilename - the file to read from
public List<SpreadSheet> readRange(InputStream stream)
readRange in interface MultiSheetSpreadSheetReaderstream - the stream to read from
public List<SpreadSheet> readRange(Reader r)
readRange in interface MultiSheetSpreadSheetReaderr - the reader to read from
protected List<SpreadSheet> doReadRange(File file)
file - the file to read from
AbstractSpreadSheetReader.getInputType()protected List<SpreadSheet> doReadRange(Reader r)
r - the reader to read from
AbstractSpreadSheetReader.getInputType()protected List<SpreadSheet> doReadRange(InputStream in)
in - the input stream to read from
AbstractSpreadSheetReader.getInputType()protected SpreadSheet doRead(File file)
doRead in class AbstractSpreadSheetReaderfile - the file to read from
AbstractSpreadSheetReader.getInputType()protected SpreadSheet doRead(Reader r)
doRead in class AbstractSpreadSheetReaderr - the reader to read from
AbstractSpreadSheetReader.getInputType()protected SpreadSheet doRead(InputStream in)
doRead in class AbstractSpreadSheetReaderin - the input stream to read from
AbstractSpreadSheetReader.getInputType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||