Class ConsumingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.github.sardine.impl.io.ConsumingInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
Wrapper for the input stream, will consume the rest of the response on
close().-
Field Summary
Fields inherited from class FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FilterInputStream
available, mark, markSupported, reset, skipMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ConsumingInputStream
- Parameters:
response- The HTTP response to read from- Throws:
IOException- If there is a problem reading from the responseNullPointerException- If the response has no message entity
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-