java.lang.Object
org.glassfish.grizzly.streams.StreamOutput
- All Implemented Interfaces:
Output
- Author:
- oleksiys
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclose
(CompletionHandler<Integer> completionHandler) Close theStreamWriter
and make sure all data was flushed.void
ensureBufferCapacity
(int size) flush
(CompletionHandler<Integer> completionHandler) Make sure that all data that has been written is flushed from the stream to its destination.Return the Input'sBuffer
.boolean
void
write
(byte data) void
-
Constructor Details
-
StreamOutput
-
-
Method Details
-
write
- Specified by:
write
in interfaceOutput
- Throws:
IOException
-
write
- Specified by:
write
in interfaceOutput
- Throws:
IOException
-
isBuffered
public boolean isBuffered()- Specified by:
isBuffered
in interfaceOutput
-
ensureBufferCapacity
- Specified by:
ensureBufferCapacity
in interfaceOutput
- Throws:
IOException
-
getBuffer
Description copied from interface:Output
Return the Input'sBuffer
. -
flush
public GrizzlyFuture<Integer> flush(CompletionHandler<Integer> completionHandler) throws IOException Description copied from interface:Output
Make sure that all data that has been written is flushed from the stream to its destination.- Specified by:
flush
in interfaceOutput
- Throws:
IOException
-
close
public GrizzlyFuture<Integer> close(CompletionHandler<Integer> completionHandler) throws IOException Description copied from interface:Output
Close theStreamWriter
and make sure all data was flushed.- Specified by:
close
in interfaceOutput
- Throws:
IOException
-