Package org.apache.storm.blobstore
Class NimbusBlobStore.NimbusDownloadInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.apache.storm.blobstore.InputStreamWithMeta
-
- org.apache.storm.blobstore.NimbusBlobStore.NimbusDownloadInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- NimbusBlobStore
public class NimbusBlobStore.NimbusDownloadInputStream extends InputStreamWithMeta
-
-
Constructor Summary
Constructors Constructor Description NimbusDownloadInputStream(BeginDownloadResult beginBlobDownload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()longgetFileLength()longgetVersion()intread()intread(byte[] b)intread(byte[] b, int off, int len)-
Methods inherited from class java.io.InputStream
close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Constructor Detail
-
NimbusDownloadInputStream
public NimbusDownloadInputStream(BeginDownloadResult beginBlobDownload)
-
-
Method Detail
-
getVersion
public long getVersion() throws IOException- Specified by:
getVersionin classInputStreamWithMeta- Throws:
IOException
-
read
public int read() throws IOException- Specified by:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Overrides:
readin classInputStream- Throws:
IOException
-
available
public int available()
- Overrides:
availablein classInputStream
-
getFileLength
public long getFileLength()
- Specified by:
getFileLengthin classInputStreamWithMeta
-
-