From directory-dev-return-730-apmail-incubator-directory-dev-archive=incubator.apache.org@incubator.apache.org Tue Feb 24 02:14:08 2004 Return-Path: Delivered-To: apmail-incubator-directory-dev-archive@www.apache.org Received: (qmail 50288 invoked from network); 24 Feb 2004 02:14:06 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Feb 2004 02:14:06 -0000 Received: (qmail 9434 invoked by uid 500); 24 Feb 2004 02:13:46 -0000 Delivered-To: apmail-incubator-directory-dev-archive@incubator.apache.org Received: (qmail 9321 invoked by uid 500); 24 Feb 2004 02:13:45 -0000 Mailing-List: contact directory-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Directory Developers List" Reply-To: "Apache Directory Developers List" Delivered-To: mailing list directory-dev@incubator.apache.org Received: (qmail 9103 invoked from network); 24 Feb 2004 02:13:44 -0000 Received: from unknown (HELO ms-smtp-01-eri0.southeast.rr.com) (24.25.9.100) by daedalus.apache.org with SMTP; 24 Feb 2004 02:13:44 -0000 Received: from noel770 (cae88-20-092.sc.rr.com [24.88.20.92]) by ms-smtp-01-eri0.southeast.rr.com (8.12.10/8.12.7) with SMTP id i1O2DoSm027602; Mon, 23 Feb 2004 21:13:50 -0500 (EST) From: "Noel J. Bergman" To: "Jakarta Commons Developers List" Cc: "'Apache Directory Developers List'" Subject: RE: [codec] StatefulDecoders Date: Mon, 23 Feb 2004 21:13:27 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 In-Reply-To: <245A7290F0E0D311BF6E009027E7908B0934B13E@atlanta.seagullsw.com> Importance: Normal X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N > > I've been working on the idea of stateful Decoders designed for use with > > non-blocking reads where buffers are read from channels and used by > > decoders. > > http://nagoya.apache.org/jira/secure/ViewIssue.jspa?id=13599 > How does your proposal contrast/differs/combines with what has > been referred to on this list as "streamable" codecs? > See http://issues.apache.org/bugzilla/show_bug.cgi?id=19882 The streamable decoders have an interface like: public void operation(InputStream in, OutputStream out) throws Exception; which means that the calling thread is going to be blocked on I/O, whereas Alex's proposed interface is: public java.util.List operation(java.nio.ByteBuffer buffer); which is called as data arrives. The difference is pull-model (blocking I/O) vs push-model (non-blocking I/O). --- Noel