Class BoundedInputStream
java.lang.Object
java.io.InputStream
ecmwf.common.technical.BoundedInputStream
-
Constructor Summary
ConstructorsConstructorDescriptionBoundedInputStream(InputStream data, long maxBytes) Initializes a newBoundedInputStreamwith the specified underlying stream and byte limit. -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
BoundedInputStream
Initializes a newBoundedInputStreamwith the specified underlying stream and byte limit.- Parameters:
data- the @{code InputStream} serving as the source of this one's datamaxBytes- the maximum number of bytes this stream will deliver before signaling end-of-data
-
-
Method Details
-
available
Available.- Overrides:
availablein classInputStream- Throws:
IOException
-
close
Close.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
-
markSupported
-
read
Read.- Overrides:
readin classInputStream- Throws:
IOException
-
read
Read.- Overrides:
readin classInputStream- Throws:
IOException
-
reset
Reset.- Overrides:
resetin classInputStream- Throws:
IOException
-
skip
Skip.- Overrides:
skipin classInputStream- Throws:
IOException
-
read
Read.- Specified by:
readin classInputStream- Throws:
IOException
-