public final class ContentInputStream extends UnsafeContentInputStream
UnsafeContentInputStream
and adds a finalizer to it that calls UnsafeContentInputStream.close()
. This
has a performance impact, but ensures that an unclosed stream does not prevent shutdown.Constructor and Description |
---|
ContentInputStream(ReadableContentChannel content)
Constructs a new ContentInputStream that reads from the given
ReadableContentChannel . |
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
available, close, read, read
mark, markSupported, read, reset, skip
public ContentInputStream(ReadableContentChannel content)
ReadableContentChannel
.content
- The content to read the stream from.Copyright © 2018. All rights reserved.