Return-Path: Delivered-To: apmail-incubator-abdera-dev-archive@locus.apache.org Received: (qmail 16656 invoked from network); 6 Nov 2007 22:05:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2007 22:05:35 -0000 Received: (qmail 89523 invoked by uid 500); 6 Nov 2007 22:05:23 -0000 Delivered-To: apmail-incubator-abdera-dev-archive@incubator.apache.org Received: (qmail 89502 invoked by uid 500); 6 Nov 2007 22:05:23 -0000 Mailing-List: contact abdera-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: abdera-dev@incubator.apache.org Delivered-To: mailing list abdera-dev@incubator.apache.org Received: (qmail 89493 invoked by uid 99); 6 Nov 2007 22:05:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2007 14:05:23 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jasnell@gmail.com designates 64.233.162.231 as permitted sender) Received: from [64.233.162.231] (HELO nz-out-0506.google.com) (64.233.162.231) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2007 22:05:26 +0000 Received: by nz-out-0506.google.com with SMTP id o37so1480311nzf for ; Tue, 06 Nov 2007 14:05:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=Dx24ThrKWKIiIkz8fnGL0nmloSdW1rKzrWS913x75PI=; b=hH9CtYeY0SYQNtJaLoWO3eiSZdSSsWueVhgWmthtKqCPIab+O3x63UeVqIXBIiJb8KLW2leXaZC4gkyRvqiCFtyfwU1IToZGVcSnvo3lr5m0L64ilrsBemSDLp24XGBeZdbWBIFb3NjgWeI+78nPHyONaAAJ0ztkDTap6ZzV57Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=h8u3EIC3vStEAQ+hwHIqKkBYXIohN0Uu1pRxlSD5P8GAkB1uDJTRrk53HPh0OPtk4aEehIyCyQLp4Z3YEAzweS6VFHD7mUjS152Opygz9n7dIsvwC92+qjSCNoZO8uibYH2ze7qd+9r0JBNBppubO2MeIqxTkZWPUMlsNItXo4M= Received: by 10.115.108.1 with SMTP id k1mr6764149wam.1194386704945; Tue, 06 Nov 2007 14:05:04 -0800 (PST) Received: from ?192.168.1.2? ( [67.181.218.96]) by mx.google.com with ESMTPS id 15sm5998374wrl.2007.11.06.14.05.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 06 Nov 2007 14:05:04 -0800 (PST) Message-ID: <4730E50E.7050407@gmail.com> Date: Tue, 06 Nov 2007 14:05:02 -0800 From: James M Snell User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: abdera-dev@incubator.apache.org Subject: Re: svn commit: r591523 - in /incubator/abdera/java/trunk: core/src/main/java/org/apache/abdera/ core/src/main/java/org/apache/abdera/parser/ core/src/main/java/org/apache/abdera/util/ core/src/main/java/org/apache/abdera/writer/ examples/src/main/ja References: <29a761a00711031003w11a87f2aw3ac1d058ac23a96c@mail.gmail.com> <29a761a00711061228j75e810d0j8caf8b91a932c224@mail.gmail.com> In-Reply-To: <29a761a00711061228j75e810d0j8caf8b91a932c224@mail.gmail.com> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Right now, the implementation flushes the buffer automatically during write. We can have an option to disable autoflushing. We can leave reseting the buffer to whatever stream/writer we're writing to. - James Brian Moseley wrote: > On Nov 3, 2007 9:03 AM, Brian Moseley wrote: > >> *cheer* >> >> i had meant to suggest this a while back, but it totally slipped my >> mind. i'm *very* happy to see it land, because Cosmo can often deliver >> huge feeds. what features are missing besides xml:lang and xml:base? i >> might be able to help. > > something that needs to be considered when switching to streamed > writing - what happens if you write enough data to commit the > response, and then an error occurs? how does the error get reported to > the client? > > my first thought is to have the writer buffer each entry and only > write it out when the close entry method is called. then, at any point > before the entry is closed, allow the caller to signal an error > condition. the writer would throw away the buffered partial entry and > instead write some sort of error element to the stream. > > thoughts? >