Code example for ReadableByteChannel

Methods: close

0
        return channel.isOpen();
    } 
 
    public void close() throws IOException 
    { 
        channel.close();
    } 
 
    public int getLastRead() 
    { 
        return lastRead;
    } 
}