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

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.

Constructor Detail

 o AbstractLoader
public AbstractLoader()

Method Detail

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