at.tuwien.ifs.feature.extraction.audio.input
Class CSVInputReader
java.lang.Object
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
|
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 |
reader
java.io.BufferedReader reader
CSVInputReader
public CSVInputReader(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
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