Package com.yahoo.jdisc.handler
Class ContentInputStream
java.lang.Object
java.io.InputStream
com.yahoo.jdisc.handler.UnsafeContentInputStream
com.yahoo.jdisc.handler.ContentInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
This class extends
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.- Author:
- Simon Thoresen Hult
-
Constructor Summary
ConstructorDescriptionContentInputStream
(ReadableContentChannel content) Constructs a new ContentInputStream that reads from the givenReadableContentChannel
. -
Method Summary
Methods inherited from class com.yahoo.jdisc.handler.UnsafeContentInputStream
available, close, mark, markSupported, read, read, reset
Methods inherited from class java.io.InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferTo
-
Constructor Details
-
ContentInputStream
Constructs a new ContentInputStream that reads from the givenReadableContentChannel
.- Parameters:
content
- The content to read the stream from.
-
-
Method Details