Interface Input<I>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DELIMITER  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      I get()
      Get next item
      int get​(java.util.List<I> buffer, int limit)
      Bulk items get.
      void reset()
      Reset this input making this readable from the beginning
      long skip​(long count)
      Skip some items.
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • get

        I get()
        throws java.io.EOFException,
              java.io.IOException
        Get next item
        Returns:
        next item or null if no items available more
        Throws:
        java.io.EOFException - if no item available more
        java.io.IOException - if failed to get some-why
      • get

        int get​(java.util.List<I> buffer,
                int limit)
         throws java.io.IOException
        Bulk items get.
        Parameters:
        buffer - buffer for the items
        limit - max count of the items to put into the buffer
        Returns:
        count of the items have been get and put into the buffer actually
        Throws:
        java.io.EOFException - if no item available more
        java.io.IOException - if failed to get some-why
      • skip

        long skip​(long count)
           throws java.io.IOException
        Skip some items.
        Parameters:
        count - count of items should be skipped from the input stream
        Throws:
        java.io.IOException - if failed to skip such amount of bytes
      • reset

        void reset()
            throws java.io.IOException
        Reset this input making this readable from the beginning
        Throws:
        java.io.IOException