Class ReadAsSeekableChannel (2.52.3)

public final class ReadAsSeekableChannel extends ReadProjectionConfig<SeekableByteChannel>

Read from the object as a SeekableByteChannel

The returned channel will be non-blocking for all read calls. If bytes have not yet asynchronously been delivered from Google Cloud Storage the method will return rather than waiting for the bytes to arrive.

The resulting SeekableByteChannel MUST be close()ed to avoid leaking memory

Instances of this class are immutable and thread safe. See Also: <xref uid="com.google.cloud.storage.BlobReadSession.<Projection>readAs(com.google.cloud.storage.ReadProjectionConfig<Projection>)" data-throw-if-not-resolved="false">BlobReadSession#readAs(ReadProjectionConfig), ReadProjectionConfigs#asSeekableChannel(), SeekableByteChannel

Inheritance

Object > ReadProjectionConfig > ReadAsSeekableChannel