Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 33456 invoked from network); 17 May 2006 18:48:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 May 2006 18:48:59 -0000 Received: (qmail 76592 invoked by uid 500); 17 May 2006 18:48:52 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 76530 invoked by uid 500); 17 May 2006 18:48:51 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 76513 invoked by uid 99); 17 May 2006 18:48:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2006 11:48:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [64.34.34.7] (HELO mail-1.colo.sourcelabs.com) (64.34.34.7) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 May 2006 11:48:47 -0700 Received: from [192.168.0.125] ([::ffff:64.81.182.155]) (AUTH: LOGIN willpugh, SSL: TLSv1/SSLv3,256bits,AES256-SHA) by mail-1.colo.sourcelabs.com with esmtp; Wed, 17 May 2006 11:48:24 -0700 id 00000000001D405B.00000000446B6FF8.0000029B Message-ID: <446B6FEF.2030306@sourcelabs.com> Date: Wed, 17 May 2006 11:48:15 -0700 From: will pugh User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Users List Subject: Re: [VFS] Getting package entry compressed size References: <3698.131.207.166.197.1147865029.squirrel@webmail.zeniitti.net> <446B205C.8080600@ops.co.at> In-Reply-To: <446B205C.8080600@ops.co.at> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N For Zip files, java.util.zip.ZipEntry has a getCompressedSize method on it. I think this should give you what you need on the zip side of things. Of course, this might just not make sense for tar.gz. How does VFS operate on tar.gz now anyways? Are you able to pull files out when it's in a compressed state, or do you need to uncompess it first? --Will Mario Ivankovits wrote: >Hi! > > >>Could it be possible to add method for receiving also compressed size of >>file inside a package (zip, tgz etc)? >> >> >No, I dont think so. As far as I know the zip library do not provide >such an information and in case of tar.gz the situations is even more >complex. > >tar is an archive only (no compression) >this archive will be compressed using gzip >So the files inside an tar archive even dont know that they are >compressed and so they didnt know its compressed file size. >In case of .tar.gz the whole tar is compressed at once - not at file level. > >Ciao, >Mario > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org