yawda.utils.io
Class CInputStreamChannel

java.lang.Object
  extended byyawda.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
           
 
Constructor Summary
CInputStreamChannel(InputStream in)
           
 
Method Summary
 void close()
           
 boolean isOpen()
           
 int read(ByteBuffer dst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

booClose

boolean booClose
Constructor Detail

CInputStreamChannel

public CInputStreamChannel(InputStream in)
Method Detail

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