at.tuwien.ifs.feature.extraction.audio.output
Class ARFFFormatWriter
java.lang.Object
at.tuwien.ifs.feature.extraction.audio.output.AbstractDataWriter
at.tuwien.ifs.feature.extraction.audio.output.ARFFFormatWriter
public class ARFFFormatWriter
- extends AbstractDataWriter
Copyright Vienna University of Technology
- Version:
- $Id: SOMLibFormatWriter.java 173 2010-06-17 16:28:05Z mayer $
- Author:
- Rudolf Mayer
Constructor Summary |
ARFFFormatWriter(java.lang.String outFileName,
boolean gzipped,
boolean writeLabels)
Constructor for ARFFFormatWriter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
realFileName
private final java.lang.String realFileName
numVectors
private int numVectors
writeLabels
private boolean writeLabels
tmpVectors
private java.util.ArrayList<java.lang.StringBuilder> tmpVectors
tmpLabels
private java.util.ArrayList<java.lang.String> tmpLabels
ARFFFormatWriter
public ARFFFormatWriter(java.lang.String outFileName,
boolean gzipped,
boolean writeLabels)
throws java.io.IOException
- Constructor for ARFFFormatWriter. if the outFileName ends with ".gz" gzip compression will be
enabled.
- Parameters:
outFileName
- the output filenamegzipped
- set true
to force gzip compression
- Throws:
java.io.IOException
writeHeader
private void writeHeader()
throws java.io.IOException
- Throws:
java.io.IOException
writeData
private void writeData()
throws java.io.IOException
- Throws:
java.io.IOException
writeVector
public void writeVector(FeatureVectorData featureVector)
throws java.io.IOException
- Specified by:
writeVector
in class AbstractDataWriter
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Overrides:
close
in class AbstractDataWriter
- Throws:
java.io.IOException