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.
| Modifier and Type | Method and Description |
|---|---|
| public InputStream | Returns: A new input stream instance.Produces a duplicate stream of the source (from its start) that can be used in parallel to the original stream (ie, thread safe). |
| duplicate | back 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).
| |