Package org.aksw.commons.io.util.channel
Class ReadableByteChannelWithoutCloseOnInterrupt
java.lang.Object
org.aksw.commons.io.util.channel.ReadableByteChannelWithoutCloseOnInterrupt
- All Implemented Interfaces:
Closeable,AutoCloseable,Channel,ReadableByteChannel
public class ReadableByteChannelWithoutCloseOnInterrupt
extends Object
implements ReadableByteChannel
ReadableByteChannel from an InputStream without closing the stream on interrupt as
Channels.newChannel does.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ReadableByteChannelWithoutCloseOnInterrupt
-
-
Method Details
-
read
- Specified by:
readin interfaceReadableByteChannel- Throws:
IOException
-
isOpen
public boolean isOpen() -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel- Specified by:
closein interfaceCloseable- Throws:
IOException
-