AsynchronousCharChannel
Alan Bateman
Alan.Bateman at Sun.COM
Thu Jul 2 06:39:13 PDT 2009
Gili wrote:
> As promised, here are two classes for your review: AsynchronousCharChannel
> and AsynchronousByteCharChannel.
>
> 1) I'm looking for a better name than "AsynchronousByteCharChannel"
> 2) I'd like suggestions on how to clean up the implementation to improve
> readability and remove duplication.
> 3) To compile the code, simply replace imports from
> "jperipheral.nio.channels.*" to "java.nio.channels.*"
>
> Please take a look and send me some feedback.
>
> Thank you,
> Gili
>
> http://n2.nabble.com/file/n3193571/AsynchronousCharChannel.java
> AsynchronousCharChannel.java
> http://n2.nabble.com/file/n3193571/AsynchronousByteCharChannel.java
> AsynchronousByteCharChannel.java
>
I haven't had a chance to look at this in any detail but I wonder if you
really need write(... boolean endOfInput)? That is, do you really need
the equivalent of a half-close (as in TCP) or isn't close sufficient?
-Alan.
More information about the nio-discuss
mailing list