次の方法で共有


BlobInputStreamOptions Class

  • java.lang.Object
    • com.azure.storage.blob.options.BlobInputStreamOptions

public class BlobInputStreamOptions

Extended options that may be passed when opening a blob input stream.

Constructor Summary

Constructor Description
BlobInputStreamOptions()

Creates a new instance of BlobInputStreamOptions.

Method Summary

Modifier and Type Method and Description
Integer getBlockSize()

Gets the size of each data chunk returned from the service.

ConsistentReadControl getConsistentReadControl()

Gets the ConsistentReadControl Default is E-Tag.

BlobRange getRange()

Gets the BlobRange.

BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

BlobInputStreamOptions setBlockSize(Integer blockSize)

Sets the size of each data chunk returned from the service.

BlobInputStreamOptions setConsistentReadControl(ConsistentReadControl consistentReadControl)

Sets the ConsistentReadControl Default is E-Tag.

BlobInputStreamOptions setRange(BlobRange range)

Sets the BlobRange.

BlobInputStreamOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

Methods inherited from java.lang.Object

Constructor Details

BlobInputStreamOptions

public BlobInputStreamOptions()

Creates a new instance of BlobInputStreamOptions.

Method Details

getBlockSize

public Integer getBlockSize()

Gets the size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.

Returns:

The size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.

getConsistentReadControl

public ConsistentReadControl getConsistentReadControl()

Gets the ConsistentReadControl Default is E-Tag.

Returns:

ConsistentReadControl Default is E-Tag.

getRange

public BlobRange getRange()

Gets the BlobRange.

Returns:

getRequestConditions

public BlobRequestConditions getRequestConditions()

Gets the BlobRequestConditions.

Returns:

setBlockSize

public BlobInputStreamOptions setBlockSize(Integer blockSize)

Sets the size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.

Parameters:

blockSize - The size of each data chunk returned from the service. If block size is large, input stream will make fewer network calls, but each individual call will send more data and will therefore take longer. The default value is 4 MB.

Returns:

The updated options.

setConsistentReadControl

public BlobInputStreamOptions setConsistentReadControl(ConsistentReadControl consistentReadControl)

Sets the ConsistentReadControl Default is E-Tag.

Parameters:

consistentReadControl - ConsistentReadControl Default is E-Tag.

Returns:

The updated options.

setRange

public BlobInputStreamOptions setRange(BlobRange range)

Sets the BlobRange.

Parameters:

range - BlobRange

Returns:

The updated options.

setRequestConditions

public BlobInputStreamOptions setRequestConditions(BlobRequestConditions requestConditions)

Sets the BlobRequestConditions.

Parameters:

requestConditions - BlobRequestConditions

Returns:

The updated options.

Applies to