|
||||||||||
| 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.ExcelSpreadSheetWriter
public class ExcelSpreadSheetWriter
Writes MS Excel 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
-missing <java.lang.String> (property: missingValue) The placeholder for missing values. default:
| Field Summary | |
|---|---|
static String |
FILE_EXTENSION
the binary file extension. |
static String |
FILE_EXTENSION_OOXML
the OOXML file extension. |
protected boolean |
m_WriteOOXML
whether to write OOXML instead of binary Excel files (latter is default). |
| 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 | |
|---|---|
ExcelSpreadSheetWriter()
|
|
| Method Summary | |
|---|---|
protected boolean |
doWrite(adams.data.spreadsheet.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. |
protected boolean |
getUseOutputStream()
Returns whether to write to an OutputStream rather than a Writer. |
boolean |
getWriteOOXML()
Returns whether OOXML files are generated instead of binary Excel files. |
String |
globalInfo()
Returns a string describing the object. |
void |
setWriteOOXML(boolean value)
Sets whether to use OOXML instead of binary Excel files. |
boolean |
write(adams.data.spreadsheet.SpreadSheet content,
String filename)
Writes the spreadsheet in CSV format to the given file. |
| Methods inherited from class adams.data.io.output.AbstractSpreadSheetWriterWithMissingValueSupport |
|---|
defineOptions, getDefaultMissingValue, getMissingValue, missingValueTipText, setMissingValue |
| Methods inherited from class adams.data.io.output.AbstractSpreadSheetWriter |
|---|
doWrite, getWriters, 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 String FILE_EXTENSION
public static String FILE_EXTENSION_OOXML
protected boolean m_WriteOOXML
| Constructor Detail |
|---|
public ExcelSpreadSheetWriter()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class adams.core.option.AbstractOptionHandlerpublic String getFormatDescription()
getFormatDescription in class AbstractSpreadSheetWriterpublic String[] getFormatExtensions()
getFormatExtensions in class AbstractSpreadSheetWriterprotected boolean getUseOutputStream()
getUseOutputStream in class AbstractSpreadSheetWriterpublic void setWriteOOXML(boolean value)
value - if true OOXML files are generatedpublic boolean getWriteOOXML()
public boolean write(adams.data.spreadsheet.SpreadSheet content,
String filename)
write in class AbstractSpreadSheetWritercontent - the spreadsheet to writefilename - the file to write the spreadsheet to
protected boolean doWrite(adams.data.spreadsheet.SpreadSheet content,
OutputStream out)
doWrite in class AbstractSpreadSheetWritercontent - the spreadsheet 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 | |||||||||