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 delimiter.protected StringGet CSV file path.protected String[]Get CSV headers.protected ReaderGet reader that allows reading a local file.protected booleanHas headers flag.voidsetFilePath(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
-