net.i2p.client.streaming.impl

## Interface MessageOutputStream.DataReceiver

- All Known Implementing Classes:
    ConnectionDataReceiver
  Enclosing class:
    MessageOutputStream

      public static interface MessageOutputStream.DataReceiver

  Interface for receiving data flushed from this stream.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `MessageOutputStream.WriteStatus` | `writeData(byte[] buf, int off, int size)` Non-blocking write of data.
    `boolean` | `writeInProcess()` Indicates whether a write is currently in process.

- - ### Method Detail

    - #### writeData

          MessageOutputStream.WriteStatus writeData(byte[] buf,
                                                    int off,
                                                    int size)

      Non-blocking write of data.
      Parameters:
        `buf` - buffer containing data
        `off` - offset in buffer to start writing
        `size` - number of bytes to write
      Returns:
        WriteStatus to monitor acceptance and completion of write

    - #### writeInProcess

          boolean writeInProcess()

      Indicates whether a write is currently in process.
      Returns:
        true if a write is in progress, false otherwise