Package org.eclipse.jetty.io.content
Class ContentSourceInputStream
java.lang.Object
java.io.InputStream
org.eclipse.jetty.io.content.ContentSourceInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An InputStream
that is backed by a Content.Source
.
The read methods are implemented by calling Content.Source.read()
.
Any Content.Chunk
s read are released once all their content
has been read.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ContentSourceInputStream
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-