Interface IoOutputStream

All Superinterfaces:
AutoCloseable, Channel, Closeable, Closeable
All Known Implementing Classes:
BufferedIoOutputStream, ChannelAsyncOutputStream, SimpleIoOutputStream

public interface IoOutputStream extends Closeable
Represents a stream that can be written asynchronously.
  • Method Details

    • writeBuffer

      IoWriteFuture writeBuffer(Buffer buffer) throws IOException
      Write the given buffer.
      Parameters:
      buffer - the data to write. NOTE: the buffer must not be touched until the returned write future is completed.
      Returns:
      An IoWriteFuture that can be used to check when the data has actually been written.
      Throws:
      IOException - if an error occurred when writing the data