Interface InputStreamSupplier (2.87.0)

public interface InputStreamSupplier

A functional interface that supplies an InputStream and may throw IOException.

Methods

get()

public abstract InputStream get()

Opens or returns the InputStream to be read.

The returned stream is managed by the resumable upload and is closed automatically when the upload succeeds, fails, times out, or is cancelled. Callers should not close the stream themselves.

Returns
Type Description
InputStream

a non-null input stream over the payload data

Exceptions
Type Description
IOException

if an I/O error occurs when opening or obtaining the stream