|
||||||||||
| 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.output.AbstractSpreadSheetWriter
adams.data.io.output.AbstractMultiSheetSpreadSheetWriter
adams.data.io.output.AbstractMultiSheetSpreadSheetWriterWithMissingValueSupport
adams.data.io.output.ODFSpreadSheetWriter
public class ODFSpreadSheetWriter
Writes ODF (Open Document Format) spreadsheet files.
Valid options are:-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
-sheet-prefix <java.lang.String> (property: sheetPrefix) The prefix for sheet names. default: Sheet
-missing <java.lang.String> (property: missingValue) The placeholder for missing values. default:
-output-as-displayed (property: outputAsDisplayed) If enabled, cells are output as displayed, ie, results of formulas instead of the formulas.
| Field Summary | |
|---|---|
static String |
FILE_EXTENSION
the binary file extension. |
protected boolean |
m_OutputAsDisplayed
whether to output the cells as displayed (disable to output formulas). |
| Fields inherited from class adams.data.io.output.AbstractMultiSheetSpreadSheetWriterWithMissingValueSupport |
|---|
m_MissingValue |
| Fields inherited from class adams.data.io.output.AbstractMultiSheetSpreadSheetWriter |
|---|
m_SheetPrefix |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
ODFSpreadSheetWriter()
|
|
| Method Summary | |
|---|---|
void |
defineOptions()
Adds options to the internal list of options. |
protected boolean |
doWrite(SpreadSheet[] content,
OutputStream out)
Performs the actual writing. |
String |
getFormatDescription()
Returns a string describing the format (used in the file chooser). |
String[] |
getFormatExtensions()
Returns the extension(s) of the format. |
boolean |
getOutputAsDisplayed()
Returns whether to output the cell content as displayed, ie, no formulas but the result of formulas. |
protected boolean |
getUseOutputStream()
Returns whether to write to an OutputStream rather than a Writer. |
String |
globalInfo()
Returns a string describing the object. |
String |
outputAsDisplayedTipText()
Returns the tip text for this property. |
void |
setOutputAsDisplayed(boolean value)
Sets whether to output the cell content as displayed, ie, no formulas but the result of formulas. |
| Methods inherited from class adams.data.io.output.AbstractMultiSheetSpreadSheetWriterWithMissingValueSupport |
|---|
getDefaultMissingValue, getMissingValue, missingValueTipText, setMissingValue |
| Methods inherited from class adams.data.io.output.AbstractMultiSheetSpreadSheetWriter |
|---|
doWrite, doWrite, doWrite, getDefaultSheetPrefix, getSheetPrefix, setSheetPrefix, sheetPrefixTipText, write, write, write, write |
| Methods inherited from class adams.data.io.output.AbstractSpreadSheetWriter |
|---|
getWriters, write, write, write, write |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, 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.output.SpreadSheetWriter |
|---|
write, write, write, write |
| Methods inherited from interface adams.core.option.OptionHandler |
|---|
cleanUpOptions, getOptionManager |
| Methods inherited from interface adams.core.Destroyable |
|---|
destroy |
| Field Detail |
|---|
public static String FILE_EXTENSION
protected boolean m_OutputAsDisplayed
| Constructor Detail |
|---|
public ODFSpreadSheetWriter()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class adams.core.option.AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface adams.core.option.OptionHandlerdefineOptions in class AbstractMultiSheetSpreadSheetWriterWithMissingValueSupportpublic String getFormatDescription()
getFormatDescription in interface SpreadSheetWritergetFormatDescription in class AbstractSpreadSheetWriterpublic String[] getFormatExtensions()
getFormatExtensions in interface SpreadSheetWritergetFormatExtensions in class AbstractSpreadSheetWriterprotected boolean getUseOutputStream()
getUseOutputStream in class AbstractSpreadSheetWriterpublic void setOutputAsDisplayed(boolean value)
setOutputAsDisplayed in interface SpreadSheetWriterWithFormulaSupportvalue - true if to output as displayedpublic boolean getOutputAsDisplayed()
getOutputAsDisplayed in interface SpreadSheetWriterWithFormulaSupportpublic String outputAsDisplayedTipText()
outputAsDisplayedTipText in interface SpreadSheetWriterWithFormulaSupport
protected boolean doWrite(SpreadSheet[] content,
OutputStream out)
doWrite in class AbstractMultiSheetSpreadSheetWritercontent - the spreadsheets to writeout - the writer to write the spreadsheet to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||