Package com.github.sardine.impl.io
Class ContentLengthInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.github.sardine.impl.io.ContentLengthInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
public class ContentLengthInputStream extends FilterInputStream
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ContentLengthInputStream(InputStream in, Long length)ContentLengthInputStream(org.apache.http.HttpResponse response) -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
Method Details
-
getLength
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-