All Packages Class Hierarchy This Package Previous Next Index WEKA's home
Class weka.core.converters.AbstractLoader
java.lang.Object
|
+----weka.core.converters.AbstractLoader
- public abstract class AbstractLoader
- extends Object
- implements Loader
Abstract class for Loaders that contains default implementation of the
setSource methods: Any of these methods that are not overwritten will
result in throwing IOException.
- Author:
- Len Trigg
-
AbstractLoader()
-
-
getDataSet()
- Must be overridden by subclasses.
-
getNextInstance()
- Must be overridden by subclasses.
-
getStructure()
- Must be overridden by subclasses.
-
setSource(File)
- Resets the Loader object and sets the source of the data set to be
the supplied File object.
-
setSource(InputStream)
- Resets the Loader object and sets the source of the data set to be
the supplied InputStream.
AbstractLoader
public AbstractLoader()
setSource
public void setSource(File file) throws IOException
- Resets the Loader object and sets the source of the data set to be
the supplied File object.
- Parameters:
- file - the File.
- Throws: IOException
- always thrown.
setSource
public void setSource(InputStream input) throws IOException
- Resets the Loader object and sets the source of the data set to be
the supplied InputStream.
- Parameters:
- input - the source InputStream.
- Throws: IOException
- always thrown.
getStructure
public abstract Instances getStructure() throws IOException
- Must be overridden by subclasses.
getDataSet
public abstract Instances getDataSet() throws IOException
- Must be overridden by subclasses.
getNextInstance
public abstract Instance getNextInstance() throws IOException
- Must be overridden by subclasses.
All Packages Class Hierarchy This Package Previous Next Index WEKA's home