yawda.utils.io
Class CInputStreamChannel
java.lang.Object
yawda.utils.io.CInputStreamChannel
- All Implemented Interfaces:
- Channel, ReadableByteChannel
- public final class CInputStreamChannel
- extends Object
- implements ReadableByteChannel
- Author:
- Quentin Anciaux
|
Field Summary |
(package private) boolean |
booClose
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
booClose
boolean booClose
CInputStreamChannel
public CInputStreamChannel(InputStream in)
read
public final int read(ByteBuffer dst)
throws IOException
- Specified by:
read in interface ReadableByteChannel
- Throws:
IOException
close
public final void close()
throws IOException
- Specified by:
close in interface Channel
- Throws:
IOException
isOpen
public final boolean isOpen()
- Specified by:
isOpen in interface Channel