Package 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 Description NimbusUploadAtomicOutputStream(String session, int bufferSize, String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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, nullOutputStream
-
-
-
-
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 classAtomicOutputStream
- Throws:
IOException
-
write
public void write(int b) throws IOException
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
public void write(byte[] b, int offset, int len) throws IOException
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-
-