Package com.groiss.fileimport
Interface StructuredFileReader
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
CSVReader
defines methods for reading structured files
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
closes the underlying IO-structures and releases any resources.int
returns the current amount of successfully read rowsreturns the settings applied to this readergets the current record's values mapped to the column names if the column names aren't unique, the values may be overwrittenboolean
reads the next record
-
Method Details
-
readRecord
reads the next record- Returns:
true
if there was a next record- Throws:
Exception
-
getValueMap
gets the current record's values mapped to the column names if the column names aren't unique, the values may be overwritten- Returns:
-
getRowCount
int getRowCount()returns the current amount of successfully read rows- Returns:
-
getSettings
StructuredFileSettings getSettings()returns the settings applied to this reader- Returns:
-
close
closes the underlying IO-structures and releases any resources. no further reading may be possible- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
- if closing fails
-