|
||||||||||
| 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.AbstractSpreadSheetWriterWithMissingValueSupport
adams.data.io.output.GnumericSpreadSheetWriter
public class GnumericSpreadSheetWriter
Writes Gnumeric workbook files (GZIP compressed or uncompressed XML), version 1.10.13.
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
-missing <java.lang.String> (property: missingValue) The placeholder for missing values. default:
-creation-timestamp <adams.core.base.BaseDateTime> (property: creationTimestamp) The timestamp to use as creation date/time info in the file. default: NOW
-uncompressed (property: uncompressedOutput) If enabled, uncompressed XML instead of GZIP compressed output is generated.
| Field Summary | |
|---|---|
protected BaseDateTime |
m_CreationTimestamp
the creation timestamp. |
protected boolean |
m_UncompressedOutput
whether to use uncompressed output. |
static String |
VERSION
the complete version. |
static String |
VERSION_MAJOR
the major version. |
static String |
VERSION_MINOR
the minor version. |
static String |
VERSION_REVISION
the revision version. |
| Fields inherited from class adams.data.io.output.AbstractSpreadSheetWriterWithMissingValueSupport |
|---|
m_MissingValue |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
GnumericSpreadSheetWriter()
|
|
| Method Summary | |
|---|---|
String |
creationTimestampTipText()
Returns the tip text for this property. |
void |
defineOptions()
Adds options to the internal list of options. |
protected boolean |
doWrite(SpreadSheet content,
OutputStream out)
Performs the actual writing. |
protected long |
getBound(SpreadSheet content,
boolean cols)
Returns the integer bound for number of columns/rows. |
BaseDateTime |
getCreationTimestamp()
Returns the creation timestamp. |
String |
getFormatDescription()
Returns a string describing the format (used in the file chooser). |
String[] |
getFormatExtensions()
Returns the extension(s) of the format. |
boolean |
getUncompressedOutput()
Returns whether to output uncompressed XML. |
protected boolean |
getUseOutputStream()
Returns whether to write to an OutputStream rather than a Writer. |
String |
globalInfo()
Returns a string describing the object. |
void |
setCreationTimestamp(BaseDateTime value)
Sets the creation timestamp. |
void |
setUncompressedOutput(boolean value)
Sets whether to output uncompressed XML. |
String |
uncompressedOutputTipText()
Returns the tip text for this property. |
| Methods inherited from class adams.data.io.output.AbstractSpreadSheetWriterWithMissingValueSupport |
|---|
getDefaultMissingValue, getMissingValue, missingValueTipText, setMissingValue |
| Methods inherited from class adams.data.io.output.AbstractSpreadSheetWriter |
|---|
doWrite, 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 |
| Field Detail |
|---|
public static final String VERSION_MAJOR
public static final String VERSION_MINOR
public static final String VERSION_REVISION
public static final String VERSION
protected BaseDateTime m_CreationTimestamp
protected boolean m_UncompressedOutput
| Constructor Detail |
|---|
public GnumericSpreadSheetWriter()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractSpreadSheetWriterWithMissingValueSupportpublic void setCreationTimestamp(BaseDateTime value)
value - the timestamppublic BaseDateTime getCreationTimestamp()
public String creationTimestampTipText()
public void setUncompressedOutput(boolean value)
value - if true uncompressed XML is generatedpublic boolean getUncompressedOutput()
public String uncompressedOutputTipText()
public String getFormatDescription()
getFormatDescription in class AbstractSpreadSheetWriterpublic String[] getFormatExtensions()
getFormatExtensions in class AbstractSpreadSheetWriterprotected boolean getUseOutputStream()
getUseOutputStream in class AbstractSpreadSheetWriter
protected long getBound(SpreadSheet content,
boolean cols)
content - the sheet to use as basiscols - if true columns are checked, otherwise rows
protected boolean doWrite(SpreadSheet content,
OutputStream out)
doWrite in class AbstractSpreadSheetWritercontent - the spreadsheet to writeout - the output stream to write the spreadsheet to
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||