Class CSVReader
- java.lang.Object
-
- org.gcube.application.geoportalcommon.config.CSVReader
-
public class CSVReader extends Object
The Class CSVReader.- Author:
- Francesco Mangiacrapa at ISTI-CNR (francesco.mangiacrapa@isti.cnr.it) Jan 29, 2019
-
-
Field Summary
Fields Modifier and Type Field Description static charDEFAULT_QUOTEstatic charDEFAULT_SEPARATOR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CSVFilegetCsvFile()Gets the csv file.FilegetFile()Gets the file.static List<String>parseLine(String cvsLine)Parses the line.static List<String>parseLine(String cvsLine, char separators)Parses the line.
-
-
-
Field Detail
-
DEFAULT_SEPARATOR
public static final char DEFAULT_SEPARATOR
- See Also:
- Constant Field Values
-
DEFAULT_QUOTE
public static final char DEFAULT_QUOTE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CSVReader
public CSVReader(File file) throws FileNotFoundException
Instantiates a new CSV reader.- Parameters:
file- the file- Throws:
FileNotFoundException- the file not found exception
-
-
Method Detail
-
parseLine
public static List<String> parseLine(String cvsLine)
Parses the line.- Parameters:
cvsLine- the cvs line- Returns:
- the list
-
parseLine
public static List<String> parseLine(String cvsLine, char separators)
Parses the line.- Parameters:
cvsLine- the cvs lineseparators- the separators- Returns:
- the list
-
getCsvFile
public CSVFile getCsvFile()
Gets the csv file.- Returns:
- the csvFile
-
getFile
public File getFile()
Gets the file.- Returns:
- the file
-
-