Class StringRecordReader

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Close the reader.
      void open()
      Open the reader.
      StringRecord readRecord()
      Read next record from the data source.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringRecordReader

        public StringRecordReader​(java.lang.String dataSource)
        Create a new StringRecordReader.
        Parameters:
        dataSource - The String data source
    • Method Detail

      • open

        public void open()
        Description copied from interface: RecordReader
        Open the reader.
        Specified by:
        open in interface RecordReader<java.lang.String>
      • readRecord

        public StringRecord readRecord()
        Description copied from interface: RecordReader
        Read next record from the data source.
        Specified by:
        readRecord in interface RecordReader<java.lang.String>
        Returns:
        the next record from the data source or null if the end of the data source is reached
      • close

        public void close()
        Description copied from interface: RecordReader
        Close the reader.
        Specified by:
        close in interface RecordReader<java.lang.String>