public class ExcelSaver
extends weka.core.converters.AbstractFileSaver
implements weka.core.converters.BatchConverter
-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 Form| Constructor and Description |
|---|
ExcelSaver()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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<weka.core.Option> |
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.
|
cancel, filePrefix, getFileExtension, getUseRelativePath, getWriter, resetWriter, retrieveDir, retrieveFile, runFileSaver, setDestination, setDestination, setDir, setDirAndPrefix, setEnvironment, setFilePrefix, setUseRelativePath, useRelativePathTipTextpublic String globalInfo()
public Enumeration<weka.core.Option> listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class weka.core.converters.AbstractFileSaverpublic 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.OptionHandlersetOptions in class weka.core.converters.AbstractFileSaveroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class weka.core.converters.AbstractFileSaverpublic void setMissingValue(String value)
value - the placeholderpublic String getMissingValue()
public String missingValueTipText()
public void resetOptions()
resetOptions in class weka.core.converters.AbstractFileSaverpublic String getFileDescription()
getFileDescription in interface weka.core.converters.FileSourcedConvertergetFileDescription in class weka.core.converters.AbstractFileSaverpublic String[] getFileExtensions()
getFileExtensions in interface weka.core.converters.FileSourcedConvertergetFileExtensions in class weka.core.converters.AbstractFileSaverpublic 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.FileSourcedConvertersetFile in interface weka.core.converters.SaversetFile in class weka.core.converters.AbstractFileSaveroutputFile - the destination file.IOException - throws an IOException if file cannot be setpublic weka.core.Capabilities getCapabilities()
getCapabilities in interface weka.core.CapabilitiesHandlergetCapabilities in class weka.core.converters.AbstractSaverCapabilitiespublic void writeBatch()
throws IOException
writeBatch in interface weka.core.converters.SaverwriteBatch in class weka.core.converters.AbstractSaverIOException - throws IOException if saving in batch mode is not
possiblepublic String getRevision()
getRevision in interface weka.core.RevisionHandlerpublic static void main(String[] args)
args - should contain the options of a Saver.Copyright © 2015 University of Waikato, Hamilton, NZ. All Rights Reserved.