- All Known Implementing Classes:
BufferedOutput
,DefaultStreamWriter.Output
,StreamOutput
,TransformerOutput
public interface Output
- Author:
- oleksiys
-
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
-
Method Details
-
write
- Throws:
IOException
-
write
- Throws:
IOException
-
isBuffered
boolean isBuffered() -
ensureBufferCapacity
- Throws:
IOException
-
getBuffer
Buffer getBuffer()Return the Input'sBuffer
.- Returns:
- the Input's
Buffer
.
-
flush
Make sure that all data that has been written is flushed from the stream to its destination.- Throws:
IOException
-
close
Close theStreamWriter
and make sure all data was flushed.- Throws:
IOException
-