| Constructor and Description |
|---|
StreamOutput(StreamWriter streamWriter) |
| Modifier and Type | Method and Description |
|---|---|
GrizzlyFuture<java.lang.Integer> |
close(CompletionHandler<java.lang.Integer> completionHandler)
Close the
StreamWriter and make sure all data was flushed. |
void |
ensureBufferCapacity(int size) |
GrizzlyFuture<java.lang.Integer> |
flush(CompletionHandler<java.lang.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 java.io.IOException
public void write(Buffer buffer) throws java.io.IOException
public boolean isBuffered()
isBuffered in interface Outputpublic void ensureBufferCapacity(int size)
throws java.io.IOException
ensureBufferCapacity in interface Outputjava.io.IOExceptionpublic Buffer getBuffer()
OutputBuffer.public GrizzlyFuture<java.lang.Integer> flush(CompletionHandler<java.lang.Integer> completionHandler) throws java.io.IOException
Outputpublic GrizzlyFuture<java.lang.Integer> close(CompletionHandler<java.lang.Integer> completionHandler) throws java.io.IOException
OutputStreamWriter and make sure all data was flushed.Copyright © 2018 Oracle Corporation. All Rights Reserved.