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 gives default implementation of setSource methods. All other methods must be overridden.

Version:
$Revision: 1.6 $
Author:
Richard Kirkby (rkirkby@cs.waikato.ac.nz)

Constructor Index

 o AbstractLoader()
 

Method Index

 o getDataSet()
 
 o getNextInstance()
 
 o getStructure()
 
 o setSource(File)
Default implementation throws an IOException.
 o setSource(InputStream)
Default implementation throws an IOException.

Constructor Detail

 o AbstractLoader
public AbstractLoader()

Method Detail

 o setSource
public void setSource(java.io.File file) throws java.io.IOException
          Default implementation throws an IOException.
Parameters:
file - the File
Throws:
java.io.IOException - always
 o setSource
public void setSource(java.io.InputStream input) throws java.io.IOException
          Default implementation throws an IOException.
Parameters:
input - the input stream
Throws:
java.io.IOException - always
 o getStructure
public abstract Instances getStructure() throws java.io.IOException
 o getDataSet
public abstract Instances getDataSet() throws java.io.IOException
 o getNextInstance
public abstract Instance getNextInstance() throws java.io.IOException

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