Package com.io7m.coffeepick.api

# Interface CoffeePickInventoryType.RuntimeCancellableArchiveWriterType

Enclosing interface:
  CoffeePickInventoryType

    public static interface CoffeePickInventoryType.RuntimeCancellableArchiveWriterType

A function for writing archive data.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `void` | `write​(java.io.OutputStream stream)` | Write data to the given stream.

- ## Method Details

  - ### write

    void write​(java.io.OutputStream stream) throws java.io.IOException, java.util.concurrent.CancellationException
    Write data to the given stream. The function should throw `CancellationException` if the write operation has been cancelled.
    Parameters:
      `stream` - An output stream
    Throws:
      `java.io.IOException` - On I/O errors
      `java.util.concurrent.CancellationException` - If writing has been cancelled