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 theStreamWriter
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'sBuffer
.boolean
isBuffered()
void
write(byte data)
void
write(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 theStreamWriter
and make sure all data was flushed.- Throws:
IOException
-
-