- All Known Implementing Classes:
BufferedOutput,DefaultStreamWriter.Output,StreamOutput,TransformerOutput
public interface Output
- Author:
- oleksiys
-
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
-
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 theStreamWriterand make sure all data was flushed.- Throws:
IOException
-