|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.core.converters.AbstractLoader
weka.core.converters.AbstractFileLoader
public abstract class AbstractFileLoader
Abstract superclass for all file loaders.
| Constructor Summary | |
|---|---|
AbstractFileLoader()
|
|
| Method Summary | |
|---|---|
void |
reset()
Resets the loader ready to read a new data set |
java.io.File |
retrieveFile()
get the File specified as the source |
static void |
runFileLoader(AbstractFileLoader loader,
java.lang.String[] options)
runs the given loader with the provided options |
void |
setFile(java.io.File file)
sets the source File |
void |
setSource(java.io.File file)
Resets the Loader object and sets the source of the data set to be the supplied File object. |
| Methods inherited from class weka.core.converters.AbstractLoader |
|---|
getDataSet, getNextInstance, getStructure, setSource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface weka.core.converters.FileSourcedConverter |
|---|
getFileDescription, getFileExtension, getFileExtensions |
| Constructor Detail |
|---|
public AbstractFileLoader()
| Method Detail |
|---|
public java.io.File retrieveFile()
retrieveFile in interface FileSourcedConverter
public void setFile(java.io.File file)
throws java.io.IOException
setFile in interface FileSourcedConverterfile - the source file
java.io.IOException - if an error occurs
public void reset()
throws java.io.IOException
reset in interface Loaderreset in class AbstractLoaderjava.io.IOException - if something goes wrong
public void setSource(java.io.File file)
throws java.io.IOException
setSource in interface LoadersetSource in class AbstractLoaderfile - the source file.
java.io.IOException - if an error occurs
public static void runFileLoader(AbstractFileLoader loader,
java.lang.String[] options)
loader - the loader to runoptions - the commandline options, first argument must be the
file to load
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||