at.tuwien.ifs.feature.extraction.audio.input
Class CSVInputReader

java.lang.Object
  extended by at.tuwien.ifs.feature.extraction.audio.input.CSVInputReader

public class CSVInputReader
extends java.lang.Object

Copyright Vienna University of Technology

reads an ASCII file in csv format (comma separated values).
separator can be any character (not only comma), character has to be provided to readLine method

Version:
$Id: CSVInputReader.java 172 2010-06-17 16:21:16Z mayer $
Author:
Thomas Lidy

Field Summary
(package private)  java.io.BufferedReader reader
           
 
Constructor Summary
CSVInputReader(java.io.File file)
           
 
Method Summary
 void close()
           
 java.lang.String[] readLine(java.lang.String separator)
          reads a line
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

java.io.BufferedReader reader
Constructor Detail

CSVInputReader

public CSVInputReader(java.io.File file)
               throws java.io.IOException
Throws:
java.io.IOException
Method Detail

readLine

public java.lang.String[] readLine(java.lang.String separator)
                            throws java.io.IOException
reads a line

Parameters:
separator - separator to split line into elements
Returns:
an array of strings containing field elements separated by given separator, null if file is at the end
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException