net.sf.myra.datamining.io
Class CN2Helper

java.lang.Object
  extended by net.sf.myra.datamining.io.Helper
      extended by net.sf.myra.datamining.io.CN2Helper

public class CN2Helper
extends Helper

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero

Constructor Summary
CN2Helper()
           
 
Method Summary
static void main(java.lang.String[] args)
           
 Dataset read(java.io.File file)
          Returns a Dataset instance that represents the data of the specified file.
 void write(java.io.File directory, Dataset dataset)
          Writes a file representing the specified dataset.
 void write(java.io.Writer writer, Dataset dataset)
          Writes a file representing the specified dataset.
 
Methods inherited from class net.sf.myra.datamining.io.Helper
getHelper, getHelper, isCompressed, open, open, read, setCompressed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CN2Helper

public CN2Helper()
Method Detail

read

public Dataset read(java.io.File file)
             throws java.io.IOException
Description copied from class: Helper
Returns a Dataset instance that represents the data of the specified file.

Specified by:
read in class Helper
Parameters:
file - the file to read the data from.
Returns:
a Dataset instance.
Throws:
java.io.IOException - if any file operation fails.

write

public void write(java.io.File directory,
                  Dataset dataset)
           throws java.io.IOException
Description copied from class: Helper
Writes a file representing the specified dataset.

Specified by:
write in class Helper
Parameters:
directory - the output directory.
dataset - the dataset to be written.
Throws:
java.io.IOException

write

public void write(java.io.Writer writer,
                  Dataset dataset)
           throws java.io.IOException
Description copied from class: Helper
Writes a file representing the specified dataset.

Specified by:
write in class Helper
Parameters:
writer - the output writer.
dataset - the dataset to be written.
Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2013. All Rights Reserved.