Package org.jppf.utils.streams
Class ChannelOutputStream
java.lang.Object
java.io.OutputStream
org.jppf.utils.streams.ChannelOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
An
OutputStream implementation that writes to an underlying WritableByteChannel which is assumed to be in blocking mode.- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionChannelOutputStream(WritableByteChannel channel) Initialize this output stream with the specified writeable channel. -
Method Summary
Methods inherited from class java.io.OutputStream
close, flush, nullOutputStream
-
Constructor Details
-
ChannelOutputStream
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
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-