|
||||||||||
| 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
adams.data.io.input.AbstractMultiSheetSpreadSheetReaderWithMissingValueSupport
adams.data.io.input.ODFSpreadSheetReader
public class ODFSpreadSheetReader
Reads ODF (Open Document Format) spreadsheet files.
If a row contains only empty cells, this is interpreted as the end of the sheet.
-D <int> (property: debugLevel) The greater the number the more additional info the scheme may output to the console (0 = off). default: 0 minimum: 0
-data-row-type <DENSE|SPARSE> (property: dataRowType) The type of row to use for the data. default: DENSE
-sheets <adams.core.Range> (property: sheetRange)
The range of sheets to load; A range is a comma-separated list of single
1-based indices or sub-ranges of indices ('start-end'); 'inv(...)' inverts
the range '...'; the following placeholders can be used as well: first,
second, third, last_2, last_1, last
default: first
-missing <java.lang.String> (property: missingValue) The placeholder for missing values. default: ?
-text-columns <java.lang.String> (property: textColumns)
The range of columns to treat as text; A range is a comma-separated list
of single 1-based indices or sub-ranges of indices ('start-end'); 'inv(..
.)' inverts the range '...'; the following placeholders can be used as well:
first, second, third, last_2, last_1, last
default:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class adams.data.io.input.AbstractSpreadSheetReader |
|---|
AbstractSpreadSheetReader.InputType |
| Field Summary | |
|---|---|
protected adams.core.Range |
m_TextColumns
the range of columns to force to be text. |
| Fields inherited from class adams.data.io.input.AbstractMultiSheetSpreadSheetReaderWithMissingValueSupport |
|---|
m_MissingValue |
| Fields inherited from class adams.data.io.input.AbstractMultiSheetSpreadSheetReader |
|---|
m_SheetRange |
| 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 | |
|---|---|
ODFSpreadSheetReader()
|
|
| Method Summary | |
|---|---|
void |
defineOptions()
Adds options to the internal list of options. |
protected List<SpreadSheet> |
doReadRange(InputStream in)
Reads the spreadsheet content from the specified file. |
String |
getFormatDescription()
Returns a string describing the format (used in the file chooser). |
String[] |
getFormatExtensions()
Returns the extension(s) of the format. |
protected AbstractSpreadSheetReader.InputType |
getInputType()
Returns how to read the data, from a file, stream or reader. |
String |
getTextColumns()
Returns the range of columns to treat as text. |
String |
globalInfo()
Returns a string describing the object. |
protected void |
initialize()
Initializes the members. |
protected String |
numericToString(String s)
Turns a numeric cell into a string. |
void |
setTextColumns(String value)
Sets the range of columns to treat as text. |
String |
textColumnsTipText()
Returns the tip text for this property. |
| Methods inherited from class adams.data.io.input.AbstractMultiSheetSpreadSheetReaderWithMissingValueSupport |
|---|
getMissingValue, missingValueTipText, setMissingValue |
| Methods inherited from class adams.data.io.input.AbstractMultiSheetSpreadSheetReader |
|---|
doRead, doRead, doRead, doReadRange, doReadRange, getSheetRange, readRange, readRange, readRange, readRange, setSheetRange, sheetRangeTipText |
| Methods inherited from class adams.data.io.input.AbstractSpreadSheetReader |
|---|
check, dataRowTypeTipText, getDataRowType, getDefaultDataRowType, getReaders, isStopped, read, read, read, read, setDataRowType, stopExecution |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, 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, 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 adams.core.Range m_TextColumns
| Constructor Detail |
|---|
public ODFSpreadSheetReader()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class adams.core.option.AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface adams.core.option.OptionHandlerdefineOptions in class AbstractMultiSheetSpreadSheetReaderWithMissingValueSupportpublic String getFormatDescription()
getFormatDescription in interface SpreadSheetReadergetFormatDescription in class AbstractSpreadSheetReaderpublic String[] getFormatExtensions()
getFormatExtensions in interface SpreadSheetReadergetFormatExtensions in class AbstractSpreadSheetReaderprotected void initialize()
initialize in class adams.core.option.AbstractOptionHandlerpublic void setTextColumns(String value)
value - the range of columnspublic String getTextColumns()
public String textColumnsTipText()
protected AbstractSpreadSheetReader.InputType getInputType()
getInputType in class AbstractSpreadSheetReaderprotected String numericToString(String s)
s - the string to process
protected List<SpreadSheet> doReadRange(InputStream in)
doReadRange in class AbstractMultiSheetSpreadSheetReaderin - the input stream to read from
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||