SelectableChannel

From: Michael (hootan.hoodfar_at_virgin.net)
Date: 11/25/03


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.
----------------------------------------------------------------------------
---------------------------



Relevant Pages

  • Selectable Channels
    ... start a input reading process from a stream, ... bufferinputstream class and others but i cant get anything to work, ... public void addChannel(SelectableChannel in, int start, int length); ... from the input stream in storing it in the message beginning at byte start. ...
    (comp.lang.java.help)
  • Re: Selectable Channels
    ... > start a input reading process from a stream, ... > public void addChannel(SelectableChannel in, int start, int length); ... > from the input stream in storing it in the message beginning at byte start. ... Check the API doc for your SQLServer jdbc driver. ...
    (comp.lang.java.help)
  • Re: pipedstreams
    ... time readInt returns values that has never been written to the stream ... to put the wrapped streams into your Comm object. ... catch (IOException e){System.err.println("An error occured ... public synchronized void send(int dest, ...
    (comp.lang.java.programmer)
  • Re: Sending XML data via socket
    ... I looked int a link you have provided. ... // Get a stream object for reading and writing ... Resize the buffer, put in the byte we've just ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: how to remove code duplication
    ... the log directory should containing the same files as the out ... exit(EXIT_FAILURE); ... int main ... void process_log_data(FILE *stream) ...
    (comp.lang.c)