Top Description Methods
com.oracle.bmc.http.client.io

public Interface DuplicatableInputStream

Imports
java.io.InputStream

Interface describing an InputStream that can safely be duplicated from its start and used in a thread-safe manner.

Add this to any class that extends InputStream and can safely duplicate that stream. Duplicate streams can be used, for example, when uploading objects to object storage to allow for parallel uploads.

Method Summary

Modifier and TypeMethod and Description
public InputStream

Returns:

A new input stream instance.
duplicate
()

Produces a duplicate stream of the source (from its start) that can be used in parallel to the original stream (ie, thread safe).

Method Detail

duplicateback to summary
public InputStream duplicate()

Produces a duplicate stream of the source (from its start) that can be used in parallel to the original stream (ie, thread safe).

Returns:InputStream

A new input stream instance.