Package org.glassfish.grizzly.streams
Interface Output
-
- All Known Implementing Classes:
BufferedOutput,DefaultStreamWriter.Output,StreamOutput,TransformerOutput
public interface Output- Author:
- oleksiys
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GrizzlyFuture<Integer>close(CompletionHandler<Integer> completionHandler)Close theStreamWriterand make sure all data was flushed.voidensureBufferCapacity(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.BuffergetBuffer()Return the Input'sBuffer.booleanisBuffered()voidwrite(byte data)voidwrite(Buffer buffer)
-
-
-
Method Detail
-
write
void write(byte data) throws IOException- Throws:
IOException
-
write
void write(Buffer buffer) throws IOException
- Throws:
IOException
-
isBuffered
boolean isBuffered()
-
ensureBufferCapacity
void ensureBufferCapacity(int size) throws IOException- Throws:
IOException
-
flush
GrizzlyFuture<Integer> flush(CompletionHandler<Integer> completionHandler) throws IOException
Make sure that all data that has been written is flushed from the stream to its destination.- Throws:
IOException
-
close
GrizzlyFuture<Integer> close(CompletionHandler<Integer> completionHandler) throws IOException
Close theStreamWriterand make sure all data was flushed.- Throws:
IOException
-
-