Package org.apache.storm.blobstore
Class BlobStore.BlobStoreFileOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- org.apache.storm.blobstore.AtomicOutputStream
-
- org.apache.storm.blobstore.BlobStore.BlobStoreFileOutputStream
-
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
- Enclosing class:
- BlobStore
protected class BlobStore.BlobStoreFileOutputStream extends AtomicOutputStream
Output stream implementation used for reading the metadata and data information.
-
-
Constructor Summary
Constructors Constructor Description BlobStoreFileOutputStream(BlobStoreFile part)
-
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
-
-
-
-
Constructor Detail
-
BlobStoreFileOutputStream
public BlobStoreFileOutputStream(BlobStoreFile part) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
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
-
-