Class NetHttpResponse.SizeValidatingInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.google.api.client.http.javanet.NetHttpResponse.SizeValidatingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
NetHttpResponse
A wrapper arround the base
InputStream
that validates EOF returned by the read calls.- Since:
- 1.20
-
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, reset
-
Field Details
-
bytesRead
private long bytesRead
-
-
Constructor Details
-
SizeValidatingInputStream
-
-
Method Details
-
read
java.io.InputStream#read(byte[], int, int) swallows IOException thrown from read() so we have to override it.- Overrides:
read
in classFilterInputStream
- Throws:
IOException
- See Also:
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classFilterInputStream
- Throws:
IOException
-
throwIfFalseEOF
- Throws:
IOException
-