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:
available
in classInputStream
- Throws:
IOException
- See Also:
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
- See Also:
-
mark
public void mark(int readLimit) - Overrides:
mark
in classInputStream
- See Also:
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
- See Also:
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
- See Also:
-
read
Blocking Read.- Overrides:
read
in 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:
read
in classInputStream
- Throws:
IOException
- See Also:
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
- See Also:
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
- See Also:
-