|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.engine.SimplePipe
A simple implementation of a Pipe that can contain a single object.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICECopyright statement |
private boolean |
mClosedIndicates whether or not the pipe has been closed. |
private java.lang.Object |
mDataData in pipe |
private boolean |
mHasNextIs there more data? |
| Constructor Summary | |
SimplePipe(java.lang.Object data)Create a new pipe. |
|
| Method Summary | |
void |
close()Closes the block writer to indicate that there are no more blocks are to be written. |
boolean |
hasNext()Indicates whether or not there are any more blocks of data to be read from the block reader. |
boolean |
isOpen()Indicates whether or not the block writer is open for writing via the put method. |
java.lang.Object |
next()Gets the next block of data contained in the block reader. |
void |
put(java.lang.Object block)Writes the specified block of output data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private java.lang.Object mData
private boolean mHasNext
private boolean mClosed
| Constructor Detail |
public SimplePipe(java.lang.Object data)
data - Initial data in pipe.| Method Detail |
public java.lang.Object next()
BlockReadernext in interface BlockReaderObjectpublic boolean hasNext()
BlockReaderhasNext in interface BlockReaderpublic void put(java.lang.Object block)
BlockWriterput in interface BlockWriterblock - the Object block to writepublic void close()
BlockWriterput method should no longer be used.
close in interface BlockWriterpublic boolean isOpen()
BlockWriterput method. After the close method has been invoked this method should return false.
isOpen in interface BlockWriter
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||