Interface Pipe<T>

    • Method Detail

      • next

        T next()
        throws PipeException,
               InterruptedException
        Returns:
        The next item in this pipe output, or null if the output end has been reached. May be a blocking operation.
        Throws:
        PipeException - In case of pipe errors in this pipe or somewhere up-stream while trying to prepare next item to return.
        InterruptedException - In case that the operation has been interrupted by another thread.
      • peek

        T peek()
        throws PipeException
        Returns:
        The next item in the pipe's output. Does not remove it, so next call to next() will return it.
        Throws:
        PipeException - In case of pipe errors in this pipe or somewhere up-stream while trying to prepare next item to return.