BlobInputStream Class
- java.
lang. Object - java.
io. InputStream - com.
azure. storage. common. StorageInputStream - com.
azure. storage. blob. specialized. BlobInputStream
- com.
- com.
- java.
public final class BlobInputStream
extends StorageInputStream
Provides an input stream to read a given blob resource.
Method Summary
Modifier and Type | Method and Description |
---|---|
protected synchronized
Byte |
dispatchRead(int readLength, long offset)
Dispatches a read operation of N bytes. |
Blob |
getProperties()
Gets the blob properties as fetched upon download. |
Methods inherited from StorageInputStream
Methods inherited from java.io.InputStream
Methods inherited from java.lang.Object
Method Details
dispatchRead
protected synchronized ByteBuffer dispatchRead(int readLength, long offset)
Dispatches a read operation of N bytes. When using sparse page blobs, the page ranges are evaluated and zero bytes may be generated on the client side for some ranges that do not exist.
Overrides:
BlobInputStream.dispatchRead(int readLength, long offset)Parameters:
readLength
- An
int
which represents the number of bytes to read.
offset
Throws:
- If an I/O error occurs.
getProperties
public BlobProperties getProperties()
Gets the blob properties as fetched upon download.
Returns:
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for Java