Package de.qytera.qtaf.data.csv
Class CsvLoader
java.lang.Object
de.qytera.qtaf.data.csv.CsvLoader
CSV loader class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected charGet CSV delimiterprotected StringGet CSV file pathprotected String[]Get CSV headersprotected ReaderGet reader that allows reading a local fileprotected booleanHas headers flagvoidsetFilePath(String filePath) Set filePath
-
Field Details
-
filePath
File path -
hasHeaders
protected boolean hasHeadersHas headers flag -
headers
Header names array
-
-
Constructor Details
-
CsvLoader
public CsvLoader()
-
-
Method Details
-
getFilePath
Get CSV file path- Returns:
- CSV file path
-
setFilePath
Set filePath- Parameters:
filePath- FilePath
-
hasHeaders
protected boolean hasHeaders()Has headers flag- Returns:
- true if has headers, false otherwise
-
getDelimiter
protected char getDelimiter()Get CSV delimiter- Returns:
- CSV delimiter
-
getHeaders
Get CSV headers- Returns:
- CSV headers
-
getReader
Get reader that allows reading a local file- Returns:
- reader
- Throws:
FileNotFoundException- File reading error
-