Code example for ReadableByteChannel

Methods: close

0
	} 
 
	public void close() throws IOException 
	{ 
		this.sel.close();
		this.channel.close();
	} 
 
	public boolean isOpen() 
	{ 
		return this.channel.isOpen();
	} 
 
	public int read( ByteBuffer dst ) throws IOException
	{ 
		IO.select( this.sel, this.timeout );
 
		return this.channel.read( dst );
	} 
}