Interface StructuredFileReader

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
CSVReader

public interface StructuredFileReader extends AutoCloseable
defines methods for reading structured files
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    closes the underlying IO-structures and releases any resources.
    int
    returns the current amount of successfully read rows
    returns the settings applied to this reader
    gets the current record's values mapped to the column names if the column names aren't unique, the values may be overwritten
    boolean
    reads the next record
  • Method Details

    • readRecord

      boolean readRecord() throws Exception
      reads the next record
      Returns:
      true if there was a next record
      Throws:
      Exception
    • getValueMap

      Map<String,Object> 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

      void close() throws Exception
      closes the underlying IO-structures and releases any resources. no further reading may be possible
      Specified by:
      close in interface AutoCloseable
      Throws:
      Exception - if closing fails