SelectableChannel
From: Michael (hootan.hoodfar_at_virgin.net)
Date: 11/25/03
- Next message: Alchemy: "Graphics for ChessApplet"
- Previous message: Martin Kersten: "Re: Why not only one interface for a EJB ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 25 Nov 2003 15:13:53 -0000
Hi,
For an assignment ive been given a selectable channel and ive been asked to
start a input reading process from a stream, ive tried using the
bufferinputstream class and others but i cant get anything to work, and the
internet hasnt proved that helpful either!
Can anyone help??
Thanks Michael
The method is:
----------------------------------------------------------------------------
-------------------------
public void addChannel(SelectableChannel in, int start, int length);
----------------------------------------------------------------------------
---------------------------
where
----------------------------------------------------------------------------
---------------------------
a.. o.addChannel(in,start,len) starts off a non-blocking read of len bytes
from the input stream in storing it in the message beginning at byte start.
----------------------------------------------------------------------------
---------------------------
- Next message: Alchemy: "Graphics for ChessApplet"
- Previous message: Martin Kersten: "Re: Why not only one interface for a EJB ??"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|