jlibs.core.nio
Class InputStreamChannel
java.lang.Object
jlibs.core.nio.InputStreamChannel
- All Implemented Interfaces:
- Closeable, Channel, ReadableByteChannel
public final class InputStreamChannel
- extends Object
- implements ReadableByteChannel
- Author:
- Santhosh Kumar T
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputStreamChannel
public InputStreamChannel(InputStream is)
isEOF
public boolean isEOF()
read
public int read(ByteBuffer buffer)
throws IOException
- Specified by:
read in interface ReadableByteChannel
- Throws:
IOException
isOpen
public boolean isOpen()
- Specified by:
isOpen in interface Channel
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Specified by:
close in interface Channel
- Throws:
IOException
Copyright © 2018. All rights reserved.