jlibs.core.nio
Class InputStreamChannel

java.lang.Object
  extended by jlibs.core.nio.InputStreamChannel
All Implemented Interfaces:
Closeable, Channel, ReadableByteChannel

public final class InputStreamChannel
extends Object
implements ReadableByteChannel

Author:
Santhosh Kumar T

Constructor Summary
InputStreamChannel(InputStream is)
           
 
Method Summary
 void close()
           
 boolean isEOF()
           
 boolean isOpen()
           
 int read(ByteBuffer buffer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamChannel

public InputStreamChannel(InputStream is)
Method Detail

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.