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 theStreamWriterand make sure all data was flushed.voidensureBufferCapacity(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.booleanvoidwrite(byte data) void
-
Constructor Details
-
StreamOutput
-
-
Method Details
-
write
- Specified by:
writein interfaceOutput- Throws:
IOException
-
write
- Specified by:
writein interfaceOutput- Throws:
IOException
-
isBuffered
public boolean isBuffered()- Specified by:
isBufferedin interfaceOutput
-
ensureBufferCapacity
- Specified by:
ensureBufferCapacityin interfaceOutput- Throws:
IOException
-
getBuffer
Description copied from interface:OutputReturn the Input'sBuffer. -
flush
public GrizzlyFuture<Integer> flush(CompletionHandler<Integer> completionHandler) throws IOException Description copied from interface:OutputMake sure that all data that has been written is flushed from the stream to its destination.- Specified by:
flushin interfaceOutput- Throws:
IOException
-
close
public GrizzlyFuture<Integer> close(CompletionHandler<Integer> completionHandler) throws IOException Description copied from interface:OutputClose theStreamWriterand make sure all data was flushed.- Specified by:
closein interfaceOutput- Throws:
IOException
-