org.apache.storm.blobstore

## Class NimbusBlobStore.NimbusUploadAtomicOutputStream

- java.lang.Object
- - java.io.OutputStream
  - - org.apache.storm.blobstore.AtomicOutputStream
    - - org.apache.storm.blobstore.NimbusBlobStore.NimbusUploadAtomicOutputStream

- All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable
  Enclosing class:
    NimbusBlobStore

      public class NimbusBlobStore.NimbusUploadAtomicOutputStream
      extends AtomicOutputStream

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NimbusUploadAtomicOutputStream(String session, int bufferSize, String key)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `cancel()` Cancel all of the writes associated with this stream and close it.
    `void` | `close()`
    `void` | `write(byte[] b)`
    `void` | `write(byte[] b, int offset, int len)`
    `void` | `write(int b)`

    - ### Methods inherited from class java.io.OutputStream

      `flush`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NimbusUploadAtomicOutputStream

          public NimbusUploadAtomicOutputStream(String session,
                                                int bufferSize,
                                                String key)

  - ### Method Detail

    - #### cancel

          public void cancel()
                      throws IOException

      Description copied from class: `AtomicOutputStream`

      Cancel all of the writes associated with this stream and close it.

      Specified by:
        `cancel` in class `AtomicOutputStream`
      Throws:
        `IOException`

    - #### write

          public void write(int b)
                     throws IOException

      Specified by:
        `write` in class `OutputStream`
      Throws:
        `IOException`

    - #### write

          public void write(byte[] b)
                     throws IOException

      Overrides:
        `write` in class `OutputStream`
      Throws:
        `IOException`

    - #### write

          public void write(byte[] b,
                            int offset,
                            int len)
                     throws IOException

      Overrides:
        `write` in class `OutputStream`
      Throws:
        `IOException`

    - #### close

          public void close()
                     throws IOException

      Specified by:
        `close` in interface `Closeable`
      Specified by:
        `close` in interface `AutoCloseable`
      Overrides:
        `close` in class `OutputStream`
      Throws:
        `IOException`

Copyright © 2021 The Apache Software Foundation. All rights reserved.