jsr340-experts@servlet-spec.java.net

[jsr340-experts] Re: Servlet 3.1 EDR updated draft

From: Greg Wilkins <gregw_at_intalio.com>
Date: Wed, 30 May 2012 10:56:24 +0200

The email, the javadoc and the document do not appear to match.

There are no javadocs for classes called NonBlockingInputSource and
NonBlockingOutputSink.
NonBlockingOutputSink is mentioned only once in the the document as a
comment to WriteListener.
The document says that ServletInputStream should have a method called
dataAvailable() but that is not in the javadoc (and how is that
different to InputStream.available() ?)

confused!




On 29 May 2012 19:58, Shing Wai Chan <shing.wai.chan_at_oracle.com> wrote:
> Hi,
>
> We have updated the Servlet 3.1 EDR draft.
> The following is a summary of changes from previous draft:
>
> 1. removing ServletReader and ServletWriter
>    as it is hard to get the exact amount of data to be read for Readers via
> the dataAvailable method (in the case of input) and have only the Stream
> based APIs for non-blocking IO. Also since we are removing the Reader class
> we also don't need the dataAvailable method. We can rely on the available()
> method in InputStream.
>
> 2. renaming the AsyncIOInputSource and AsyncIOOutputSink to
> NonBlockingInputSource and NonBlockingOutputSink
>
> 3. removing inputAvailable and outputReady methods in ProtocolHandler
>    as we can use non blocking IO here
>
> Please let us know your comments by Friday COB.
> Thanks.
>
> Shing Wai Chan