|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
interface WriteStream
Represents a stream of data that can be written to.
Any class that implements this interface can be used by a Pump to pump data from a ReadStream to it.
Method Summary | |
---|---|
void
|
drainHandler(groovy.lang.Closure handler)
Set a drain handler on the stream. |
void
|
exceptionHandler(groovy.lang.Closure handler)
Set an exception handler on the stream |
boolean
|
isWriteQueueFull()
This will return true if there are more bytes in the write queue than the value set using setWriteQueueMaxSize |
void
|
setWriteQueueMaxSize(int maxSize)
Set the maximum size of the write queue to maxSize. |
void
|
writeBuffer(Buffer data)
Write some data to the stream. |
Method Detail |
---|
void drainHandler(groovy.lang.Closure handler)
void exceptionHandler(groovy.lang.Closure handler)
boolean isWriteQueueFull()
void setWriteQueueMaxSize(int maxSize)
void writeBuffer(Buffer data)
Groovy Documentation