Class RowIterator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected AbstractParser parser  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void beginParsing()
      This method is called whenever the iterator is starting to iterate over the results.
      ParsingContext getContext()
      Returns the current parsing Context, if available
      ResultIterator<T,​ParsingContext> iterator()  
      protected java.lang.String[] nextResult()
      Returns the next record (either a String[] or a Record)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • nextResult

        protected final java.lang.String[] nextResult()
        Returns the next record (either a String[] or a Record)
        Returns:
        the next record if available.
      • beginParsing

        protected abstract void beginParsing()
        This method is called whenever the iterator is starting to iterate over the results. an example implementation of this is:
             
             &#064;Override
             public void beginParsing(){
                 parser.beginParsing(input);
             }
         

        This is to allow for different input types such as Reader, File, or InputStream without large code reuse.