uk.org.ogsadai.common
Interface BlockReader
- All Known Subinterfaces:
- Pipe
- All Known Implementing Classes:
- CallThroughExternalPipe, CallThroughPipe, DataTransportBlockReader, NonBufferingPipe, SimplePipe, SynchronizedGrowableExternalPipe, SynchronizedGrowablePipe, SynchronizedPipe
- public interface BlockReader
This is an interface to read blocks of input data from. A block of input data is an Object
the type of which depends on the producer.
- Author:
- The OGSA-DAI Project Team
Method Summary |
boolean |
hasNext()
Indicates whether or not there are any more blocks of data to be read from the block reader. |
java.lang.Object |
next()
Gets the next block of data contained in the block reader. |
next
public java.lang.Object next()
-
Gets the next block of data contained in the block reader.
-
- Returns:
- an
Object
- Throws:
java.util.NoSuchElementException
- if there are no more blocks to read
hasNext
public boolean hasNext()
-
Indicates whether or not there are any more blocks of data to be read from the block reader.
-
- Returns:
- true if there are more blocks to be read or false otherwise