Package com.saperion.common.streams
Class BlockingInputStream
java.lang.Object
java.io.InputStream
com.saperion.common.streams.BlockingInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
The Class BlockingInputStream.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new blocking input stream. -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
is
The stream.
-
-
Constructor Details
-
BlockingInputStream
Instantiates a new blocking input stream.- Parameters:
is- the is
-
-
Method Details
-
available
- Overrides:
availablein classInputStream- Throws:
IOException- See Also:
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException- See Also:
-
mark
public void mark(int readLimit) - Overrides:
markin classInputStream- See Also:
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream- See Also:
-
read
- Specified by:
readin classInputStream- Throws:
IOException- See Also:
-
read
Blocking Read.- Overrides:
readin classInputStream- Parameters:
bf- the buffer to fill- Returns:
- the number of read bytes or -1 if the end of the stream is reached.
- Throws:
IOException- Signals that an I/O exception has occurred.- See Also:
-
read
- Overrides:
readin classInputStream- Throws:
IOException- See Also:
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException- See Also:
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException- See Also:
-