public class ArffFileWriter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ArffFileWriter.CompressionType
The algorithms that can be used to compress ARFF files.
|
Constructor and Description |
---|
ArffFileWriter(java.io.File arffFile,
ArffFileWriter.CompressionType compressionType,
java.lang.String relationName)
Creates a new ARFF file at a given path (overwriting any existing file at
that path) and writes an ARFF header to the file.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the ARFF file.
|
void |
writeInstance(java.lang.String secrets,
java.lang.String observations)
Writes a new instance to the ARFF file's dataset.
|
public ArffFileWriter(java.io.File arffFile, ArffFileWriter.CompressionType compressionType, java.lang.String relationName) throws ArffFileException
arffFile
- The location of the new ARFF file.compressionType
- The compression algorithm to use while writing the
file.relationName
- The @relation definition to include in the
header of the file.ArffFileException
- If the ARFF file header could not be written.public void writeInstance(java.lang.String secrets, java.lang.String observations)
secrets
- The secret variable names and values encountered during
execution.observations
- The observable values encountered during execution.public void close()