|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpyrasun.eio.EIOOutputBuffer
Abstracts out NIO writing and related buffer operations to make life slightly easier for for normal folk. You normally get one of these by calling ReadWriteEndpoint.getOutputBuffer(). If you want to instantiate one yourself you're freakin' crazy (but I won't stop you).
| Constructor Summary | |
EIOOutputBuffer(ReadWriteEndpoint endpoint)
create an output buffer that's associated with the specified Endpoint. |
|
| Method Summary | |
ByteBufferOutputStream |
getOutputStream()
Returns the associated ByteBufferOutputStream. |
boolean |
isWriteInProgress()
Returns true if a write is in progress or only a partial write was performed, false otherwise. |
void |
reset()
Reset everything back to initial state, including the associated ByteBufferOutputStream and the backing output ByteBuffer. |
boolean |
writeResults()
Write stuff from underlying ByteBuffer out to the channel (this includes anything you may have written via the stream returned by getOutputStream()). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EIOOutputBuffer(ReadWriteEndpoint endpoint)
| Method Detail |
public void reset()
public ByteBufferOutputStream getOutputStream()
public boolean writeResults()
throws java.io.IOException
java.io.IOExceptionpublic boolean isWriteInProgress()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||