Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 11513 invoked from network); 26 Sep 2004 10:01:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Sep 2004 10:01:36 -0000 Received: (qmail 89935 invoked by uid 500); 26 Sep 2004 10:01:32 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 89891 invoked by uid 500); 26 Sep 2004 10:01:31 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 89867 invoked by uid 99); 26 Sep 2004 10:01:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (hermes.apache.org: local policy) Received: from [62.116.51.59] (HELO kerberos) (62.116.51.59) by apache.org (qpsmtpd/0.28) with SMTP; Sun, 26 Sep 2004 03:01:28 -0700 Received: From mail.at.efp.cc ([62.116.51.60]) by kerberos (WebShield SMTP v4.5 MR1a); id 1096192870341; Sun, 26 Sep 2004 12:01:10 +0200 Received: from [194.107.80.53] (wrpo.at.intra.efp.cc [194.107.80.53]) by mail.at.efp.cc (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id i8QA16006791 for ; Sun, 26 Sep 2004 12:01:07 +0200 Message-ID: <41569342.10701@apache.org> Date: Sun, 26 Sep 2004 12:00:34 +0200 From: Reinhard Poetz User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Block deployer - first draft in SVN References: <4155646D.8000002@apache.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Pier Fumagalli wrote: > I don't understand the Block interface: > > public interface Block { > public InputStream getInputStream() throws IOException; > public RemoteBlock getRemoteBlock(); > } > > Why does it expose an InputStream??? Hmm, I wrote this a long time ago and haven't had reached the point yet to write the implementation. My goal is having a "light" version of a block to get access to its meta data (RemoteBlock) and I need access to the block as binary. Streams and Java is _not_ a strengh of mine and before I'm going to implement it, I will read (again) about streams to learn what's the best object to be returned. Any suggestions? ;-) -- Reinhard