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