Package ca.uhn.fhir.util
Class CountingAndLimitingInputStream
java.lang.Object
java.io.InputStream
ca.uhn.fhir.util.CountingAndLimitingInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionCountingAndLimitingInputStream
(InputStream theWrap, int theMaxBytes) Wraps another input stream, counting the number of bytes read. -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
Constructor Details
-
CountingAndLimitingInputStream
Wraps another input stream, counting the number of bytes read.- Parameters:
theWrap
- the input stream to be wrapped
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-