public abstract class DeferredInputStream<T> extends InputStream
InputStream
to allow for deferred production of data. Allows for
zero-copy conversions when the goal is to copy the contents of a resource to a
stream or buffer.Constructor and Description |
---|
DeferredInputStream() |
Modifier and Type | Method and Description |
---|---|
abstract int |
flushTo(OutputStream target)
Produce the entire contents of this stream to the specified target.
|
abstract T |
getDeferred()
Returns the object that backs the stream.
|
available, close, mark, markSupported, read, read, read, reset, skip
public abstract int flushTo(OutputStream target) throws IOException
target
- to write to.IOException