Package org.jppf.utils.streams
Class ChannelInputStream
java.lang.Object
java.io.InputStream
org.jppf.utils.streams.ChannelInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An
InputStream implementation that reads from an underlying ReadableByteChannel which is assumed to be in blocking mode.- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionChannelInputStream(ReadableByteChannel channel) Initialize this output stream with the specified writeable channel. -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ChannelInputStream
Initialize this output stream with the specified writeable channel.- Parameters:
channel- the channel to write to.- Throws:
IllegalBlockingModeException- if the channel is aSelectableChannelnot configured in blocking mode.
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-