Interface ResultObjectProvider

    • Method Detail

      • supportsRandomAccess

        boolean supportsRandomAccess()
        Return true if this provider supports random access.
      • next

        boolean next()
              throws Exception
        Advance the input to the next position. Return true if there is more data; otherwise false.
        Throws:
        Exception
      • absolute

        boolean absolute​(int pos)
                  throws Exception
        Move to the given 0-based position. This method is only called for providers that support random access. Return true if there is data at this position; otherwise false. This may be invoked in place of next().
        Throws:
        Exception
      • reset

        void reset()
            throws Exception
        Reset this provider. This is an optional operation. If supported, it should move the position of the provider to before the first element. Non-random-access providers may be able to support this method by re-acquiring all resources as if the result were just opened.
        Throws:
        Exception
      • handleCheckedException

        void handleCheckedException​(Exception e)
        Any checked exceptions that are thrown will be passed to this method. The provider should re-throw the exception as an appropriate unchecked exception.