| Constructor and Description |
|---|
StreamOutput(StreamWriter streamWriter) |
| Modifier and Type | Method and Description |
|---|---|
GrizzlyFuture<Integer> |
close(CompletionHandler<Integer> completionHandler)
Close the
StreamWriter and make sure all data was flushed. |
void |
ensureBufferCapacity(int size) |
GrizzlyFuture<Integer> |
flush(CompletionHandler<Integer> completionHandler)
Make sure that all data that has been written is
flushed from the stream to its destination.
|
Buffer |
getBuffer()
Return the Input's
Buffer. |
boolean |
isBuffered() |
void |
write(Buffer buffer) |
void |
write(byte data) |
public StreamOutput(StreamWriter streamWriter)
public void write(byte data)
throws IOException
write in interface OutputIOExceptionpublic void write(Buffer buffer) throws IOException
write in interface OutputIOExceptionpublic boolean isBuffered()
isBuffered in interface Outputpublic void ensureBufferCapacity(int size)
throws IOException
ensureBufferCapacity in interface OutputIOExceptionpublic Buffer getBuffer()
OutputBuffer.public GrizzlyFuture<Integer> flush(CompletionHandler<Integer> completionHandler) throws IOException
Outputflush in interface OutputIOExceptionpublic GrizzlyFuture<Integer> close(CompletionHandler<Integer> completionHandler) throws IOException
OutputStreamWriter and make sure all data was flushed.close in interface OutputIOExceptionCopyright © 2016 Oracle Corporation. All Rights Reserved.