Class BinarySliceResourceStore<T>

Resource store that slices the data stream if there are range preferences. Only works for bytes range preferences on binary data streams. Does not support multipart range requests.

If the slice happens, unit/start/end values will be written to the metadata to indicate such. The values are dependent on the preferences we got as an input, as we don't know the actual size of the data stream.

The defaultSliceSize parameter can be used to set how large a slice should be if the end of a range is not defined. Setting this to 0, which is the default, will cause the end of the stream to be used as the end of the slice.

Type Parameters

Hierarchy (view full)

Constructors

Properties

logger: Logger = ...
source: T

Methods