![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.cilib.io.TextFileReader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cilib-library Show documentation
Show all versions of cilib-library Show documentation
A library of composable components enabling simpler Computational Intelligence
/** __ __
* _____ _/ /_/ /_ Computational Intelligence Library (CIlib)
* / ___/ / / / __ \ (c) CIRG @ UP
* / /__/ / / / /_/ / http://cilib.net
* \___/_/_/_/_.___/
*/
package net.sourceforge.cilib.io;
import java.util.ArrayList;
import java.util.List;
/**
* Class reads data from a local text based file. A row is a line in the text file,
* the line is tokenized using the regular expression delimiter {@link #delimiter delimiter},
* the resulting tokens form the columns of the row.
*/
public class TextFileReader extends FileReader {
/** Default constructor. Initialises the delimiter to be a comma, i.e.
* the class is a csv reader.
*/
public TextFileReader() {
}
/**
* Returns the next line in the file.
* @return a tokenized line in the file.
*/
@Override
public String nextRow() {
return this.nextLine();
}
/**
* {@inheritDoc }
*/
@Override
public List getColumnNames() {
return new ArrayList();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy