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 Output
IOException
public void write(Buffer buffer) throws IOException
write
in interface Output
IOException
public boolean isBuffered()
isBuffered
in interface Output
public void ensureBufferCapacity(int size) throws IOException
ensureBufferCapacity
in interface Output
IOException
public Buffer getBuffer()
Output
Buffer
.public GrizzlyFuture<Integer> flush(CompletionHandler<Integer> completionHandler) throws IOException
Output
flush
in interface Output
IOException
public GrizzlyFuture<Integer> close(CompletionHandler<Integer> completionHandler) throws IOException
Output
StreamWriter
and make sure all data was flushed.close
in interface Output
IOException
Copyright © 2014 Oracle Corporation. All rights reserved.