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

Constructor Index

 o AbstractLoader()

Method Index

 o getDataSet()
Must be overridden by subclasses.
 o getNextInstance()
Must be overridden by subclasses.
 o getStructure()
Must be overridden by subclasses.
 o setSource(File)
Resets the Loader object and sets the source of the data set to be the supplied File object.
 o setSource(InputStream)
Resets the Loader object and sets the source of the data set to be the supplied InputStream.

Constructors

 o AbstractLoader
 public AbstractLoader()

Methods

 o 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.
 o 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.
 o getStructure
 public abstract Instances getStructure() throws IOException
Must be overridden by subclasses.

 o getDataSet
 public abstract Instances getDataSet() throws IOException
Must be overridden by subclasses.

 o getNextInstance
 public abstract Instance getNextInstance() throws IOException
Must be overridden by subclasses.


All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home