|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.io.Helper
public abstract class Helper
Base class for dataset file helper.
Constructor Summary | |
---|---|
Helper()
|
Method Summary | |
---|---|
static Helper |
getHelper(java.io.File file)
Returns a Helper instance to read the specified file. |
static Helper |
getHelper(java.lang.String filename)
Returns a Helper instance to read the specified file. |
boolean |
isCompressed()
Tests if the output should be compressed. |
static Dataset |
open(java.io.File file)
Returns a Dataset instance that represents the data of
the specified file. |
static Dataset |
open(java.lang.String filename)
Returns a Dataset instance that represents the data of
the specified file. |
abstract Dataset |
read(java.io.File file)
Returns a Dataset instance that represents the data of
the specified file. |
Dataset |
read(java.lang.String filename)
Returns a Dataset instance that represents the data of
the specified file. |
void |
setCompressed(boolean compressed)
Sets the value of the compressed flag. |
abstract void |
write(java.io.File directory,
Dataset dataset)
Writes a file representing the specified dataset. |
abstract void |
write(java.io.Writer writer,
Dataset dataset)
Writes a file representing the specified dataset. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Helper()
Method Detail |
---|
public boolean isCompressed()
public void setCompressed(boolean compressed)
compressed
- the value to set.public abstract void write(java.io.File directory, Dataset dataset) throws java.io.IOException
directory
- the output directory.dataset
- the dataset to be written.
java.io.IOException
public abstract void write(java.io.Writer writer, Dataset dataset) throws java.io.IOException
writer
- the output writer.dataset
- the dataset to be written.
java.io.IOException
public Dataset read(java.lang.String filename) throws java.io.IOException
Dataset
instance that represents the data of
the specified file.
filename
- the name of the file to read the data from.
Dataset
instance.
java.io.IOException
- if any file operation fails.public abstract Dataset read(java.io.File file) throws java.io.IOException
Dataset
instance that represents the data of
the specified file.
file
- the file to read the data from.
Dataset
instance.
java.io.IOException
- if any file operation fails.public static Helper getHelper(java.lang.String filename)
Helper
instance to read the specified file.
file
- the file to be read.
Helper
instance to read the specified file.public static Helper getHelper(java.io.File file)
Helper
instance to read the specified file.
file
- the file to be read.
Helper
instance to read the specified file.public static Dataset open(java.lang.String filename) throws java.io.IOException
Dataset
instance that represents the data of
the specified file.
filename
- the filename to read the data from.
Dataset
instance.
java.io.IOException
- if any file operation fails.public static Dataset open(java.io.File file) throws java.io.IOException
Dataset
instance that represents the data of
the specified file.
file
- the file to read the data from.
Dataset
instance.
java.io.IOException
- if any file operation fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |