Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 98243 invoked from network); 8 Apr 2009 09:36:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2009 09:36:00 -0000 Received: (qmail 68227 invoked by uid 500); 8 Apr 2009 09:35:59 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 68099 invoked by uid 500); 8 Apr 2009 09:35:59 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 68089 invoked by uid 99); 8 Apr 2009 09:35:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 09:35:59 +0000 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jak-commons-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 09:35:51 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LrUBp-0005Rj-Gt for dev@commons.apache.org; Wed, 08 Apr 2009 09:35:25 +0000 Received: from mail.elsag-solutions.com ([62.154.225.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Apr 2009 09:35:25 +0000 Received: from joerg.schaible by mail.elsag-solutions.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 08 Apr 2009 09:35:25 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: dev@commons.apache.org From: =?UTF-8?B?SsO2cmc=?= Schaible Subject: Re: [io?] [all] flexible "char-array" ? Date: Wed, 08 Apr 2009 11:36:05 +0200 Lines: 32 Message-ID: References: <8831CCE6-AD06-4007-9763-AC1D1CEB9C34@activemath.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: mail.elsag-solutions.com User-Agent: KNode/0.10.9 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Paul Libbrecht wrote at Mittwoch, 8. April 2009 11:17: > > Hello commons list, > > one thing I keep seeing around is people exchanging either too big > strings, byte-arrays, or stringbuffers. It looks like, they one has > still not found something sensible that describes something close to > an array of characters so: > > - that can give its length > - that can be read and re-read > - with a variant can be changed to (e.g. with a writer) > > but something that is flexible enough so that: > > - it does not reserve a block of contiguous bytes in RAM! > - it scales pretty big > - maybe it even has regions mapped into file > > where should I look for such a family of objects? > Commons-IO could be such maybe? > > paul > > PS: last I looked, many many many people serialize massive document as > XML, that is good, but they exchange that XML as string! Have a look at the different ImageInputStream/ImageOutputStream implementations. In fact, they don't have to be used for images only ;-) - Jörg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org