AsynchronousCoder?
Gili
cowwoc at bbs.darktech.org
Thu Jun 25 20:48:43 PDT 2009
Hi Alex,
I'm almost done implementing an AsynchronousByteReader (equivalent to
an InputStreamReader). It essentially does what you mentioned
(transforming the data along the way, wrapping Future and
CompletionHandlers, etc). I plan on posting my implementation early next
week for your review.
Thanks,
Gili
Alexander Libman (via Nabble) wrote:
> Hi Gili,
> AsynchronousCoder is part of AsynchronousFilter framework
> The main concept of AsynchronousFilter is described in
> http://mail.openjdk.java.net/pipermail/nio-dev/2009-January/000339.html
>
> Since January this framework has been slightly modified, but the basis is
> the same.
> Generic filter now is defined as
> abstract class AsynchronousFilter<OUTER_PARM,
> OUTER_RESULT,
> INNER_PARM,
> INNER_RESULT>
>
> and
> public class AsynchronousCoder extends
> AsynchronousFilter<CharBuffer,
> Integer,
> ByteBuffer,
> Integer>
>
> Full code (not well documented yet) you can find at
>
> http://jproactor.svn.sourceforge.net/viewvc/jproactor/trunk/nio2/src/au/com/
> terabit/nio2/filter/
>
> and bunch of tests in
> http://jproactor.svn.sourceforge.net/viewvc/jproactor/trunk/nio2/src/au/com/
> terabit/nio2/testfilter/
>
> Example of usage for AsynchronousCoder:
> http://jproactor.svn.sourceforge.net/viewvc/jproactor/trunk/nio2/src/au/com/
> terabit/nio2/testfilter/TestCoder.java
>
> Currently AsynchrnousCoder allows simple read to(write from) CharBuffer.
> readLine () not implemented.
> I was thinking that readLine is more fitted into imaginable
> AsynchronousScanner class
>
> Alex
>
> > -----Original Message-----
> > From: nio-dev-bounces at ...
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3159485&i=0>
> > [mailto:nio-dev-bounces at ...
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3159485&i=1>]On
> Behalf Of Gili
> > Sent: Thursday, June 25, 2009 4:24 PM
> > To: nio-dev at ...
> <http://n2.nabble.com/user/SendEmail.jtp?type=node&node=3159485&i=2>
> > Subject: AsynchronousCoder?
> >
> >
> >
> > Hi,
> >
> > Alan wrote:
> > > Alex Libman has built a filter framework on this API and it
> includes an
> > > AsynchronousCoder for char I/O. You might want to bring it up on the
> > > nio-dev mailing list for more discussion.
> >
> > Where can I find out more information on this API? I'm looking for an
> > AsychronousCharChannel of sorts, that will let me read/write on
> CharBuffer
> > and also readLine().
> >
> > Thank you,
> > Gili
> > --
> > View this message in context:
> > http://n2.nabble.com/AsynchronousCoder--tp3157509p3157509.html
> > Sent from the nio-dev mailing list archive at Nabble.com.
> >
> > Checked by AVG - www.avg.com
> > Version: 8.5.374 / Virus Database: 270.12.90/2200 - Release Date:
> > 06/24/09 12:49:00
> >
>
>
>
> ------------------------------------------------------------------------
> This email is a reply to your post @
> http://n2.nabble.com/AsynchronousCoder--tp3157509p3159485.html
> You can reply by email or by visting the link above.
>
--
View this message in context: http://n2.nabble.com/AsynchronousCoder--tp3157509p3159510.html
Sent from the nio-dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20090625/3e34bb17/attachment.html
More information about the nio-dev
mailing list