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 voidcancel()Cancel all of the writes associated with this stream and close it.voidclose()voidwrite(byte[] b)voidwrite(byte[] b, int offset, int len)voidwrite(int b)-
Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
-
-
-
Method Detail
-
cancel
public void cancel() throws IOExceptionDescription copied from class:AtomicOutputStreamCancel all of the writes associated with this stream and close it.- Specified by:
cancelin classAtomicOutputStream- Throws:
IOException
-
write
public void write(int b) throws IOException- Specified by:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] b, int offset, int len) throws IOException- Overrides:
writein classOutputStream- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
-