Package com.oracle.bmc.http.client.io
Interface DuplicatableInputStream
-
public interface DuplicatableInputStreamInterface 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
InputStreamand 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamduplicate()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
-
duplicate
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:
- A new input stream instance.
-
-