|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.core.converters.AbstractSaver
weka.core.converters.AbstractFileSaver
weka.core.converters.ExcelSaver
public class ExcelSaver
Writes to a destination that is in MS Excel spreadsheet format (97-2007).
For instance for spreadsheets that can be read with the Microsoft Office Suite.
-M <str> The string representing a missing value. (default: ?)
-i <the input file> The input file
-o <the output file> The output fileFor a tutorial on Apache POI/HSSF, see:
Saver
,
Serialized FormField Summary |
---|
Fields inherited from interface weka.core.converters.Saver |
---|
BATCH, INCREMENTAL, NONE |
Constructor Summary | |
---|---|
ExcelSaver()
Constructor. |
Method Summary | |
---|---|
weka.core.Capabilities |
getCapabilities()
Returns the Capabilities of this saver. |
String |
getFileDescription()
Returns a description of the file type. |
String[] |
getFileExtensions()
Gets all the file extensions used for this type of file. |
String |
getMissingValue()
Returns the current placeholder for missing values. |
String[] |
getOptions()
Gets the current settings of the Classifier. |
String |
getRevision()
Returns the revision string. |
String |
globalInfo()
Returns a string describing this Saver. |
Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(String[] args)
Main method. |
String |
missingValueTipText()
Returns the tip text for this property. |
void |
resetOptions()
Resets the Saver. |
boolean |
retrieveUseOOXML()
Returns whether to use OOXML or binary format. |
void |
setFile(File outputFile)
Sets the destination file. |
void |
setMissingValue(String value)
Sets the placeholder for missing values. |
void |
setOptions(String[] options)
Parses a given list of options. |
void |
setUseOOXML(boolean value)
Sets whether to use OOXML or binary format. |
void |
writeBatch()
Writes a Batch of instances. |
Methods inherited from class weka.core.converters.AbstractFileSaver |
---|
cancel, filePrefix, getFileExtension, getUseRelativePath, getWriter, resetWriter, retrieveDir, retrieveFile, runFileSaver, setDestination, setDestination, setDir, setDirAndPrefix, setEnvironment, setFilePrefix, setUseRelativePath, useRelativePathTipText |
Methods inherited from class weka.core.converters.AbstractSaver |
---|
getInstances, getWriteMode, resetStructure, setInstances, setRetrieval, setStructure, writeIncremental |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExcelSaver()
Method Detail |
---|
public String globalInfo()
public Enumeration listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class weka.core.converters.AbstractFileSaver
public void setOptions(String[] options) throws Exception
-M <str> The string representing a missing value. (default: ?)
-i <the input file> The input file
-o <the output file> The output file
setOptions
in interface weka.core.OptionHandler
setOptions
in class weka.core.converters.AbstractFileSaver
options
- the list of options as an array of strings
Exception
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class weka.core.converters.AbstractFileSaver
public void setMissingValue(String value)
value
- the placeholderpublic String getMissingValue()
public String missingValueTipText()
public void resetOptions()
resetOptions
in class weka.core.converters.AbstractFileSaver
public String getFileDescription()
getFileDescription
in interface weka.core.converters.FileSourcedConverter
getFileDescription
in class weka.core.converters.AbstractFileSaver
public String[] getFileExtensions()
getFileExtensions
in interface weka.core.converters.FileSourcedConverter
getFileExtensions
in class weka.core.converters.AbstractFileSaver
public void setUseOOXML(boolean value)
value
- if true then OOXML format is usedpublic boolean retrieveUseOOXML()
public void setFile(File outputFile) throws IOException
setFile
in interface weka.core.converters.FileSourcedConverter
setFile
in interface weka.core.converters.Saver
setFile
in class weka.core.converters.AbstractFileSaver
outputFile
- the destination file.
IOException
- throws an IOException if file cannot be setpublic weka.core.Capabilities getCapabilities()
getCapabilities
in interface weka.core.CapabilitiesHandler
getCapabilities
in class weka.core.converters.AbstractSaver
Capabilities
public void writeBatch() throws IOException
writeBatch
in interface weka.core.converters.Saver
writeBatch
in class weka.core.converters.AbstractSaver
IOException
- throws IOException if saving in batch mode
is not possiblepublic String getRevision()
getRevision
in interface weka.core.RevisionHandler
public static void main(String[] args)
args
- should contain the options of a Saver.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |