Package fr.gouv.vitam.common.stream
Class SizedInputStream
java.lang.Object
java.io.InputStream
fr.gouv.vitam.common.stream.SizedInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
Input stream with read size
-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
SizedInputStream
Default constructor- Parameters:
is
- the InputStream source
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
getSize
public long getSize()Get read size- Returns:
- the read size
-