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 java.lang.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.
- Version:
- $Revision: 1.3 $
- 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(java.io.File file) throws java.io.IOException
Resets the Loader object and sets the source of the data set to be
the supplied File object.
- Parameters:
file
- the File.
- Throws:
- java.io.IOException - always thrown.
setSource
public void setSource(java.io.InputStream input) throws java.io.IOException
Resets the Loader object and sets the source of the data set to be
the supplied InputStream.
- Parameters:
input
- the source InputStream.
- Throws:
- java.io.IOException - always thrown.
getStructure
public abstract Instances getStructure() throws java.io.IOException
Must be overridden by subclasses.
getDataSet
public abstract Instances getDataSet() throws java.io.IOException
Must be overridden by subclasses.
getNextInstance
public abstract Instance getNextInstance() throws java.io.IOException
Must be overridden by subclasses.
All Packages Class Hierarchy This Package Previous Next Index WEKA's home