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 int
available()
long
getFileLength()
long
getVersion()
int
read()
int
read(byte[] b)
int
read(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:
getVersion
in classInputStreamWithMeta
- Throws:
IOException
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
public int read(byte[] b) throws IOException
- Overrides:
read
in classInputStream
- Throws:
IOException
-
available
public int available()
- Overrides:
available
in classInputStream
-
getFileLength
public long getFileLength()
- Specified by:
getFileLength
in classInputStreamWithMeta
-
-