Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 20776 invoked from network); 30 Oct 2009 21:26:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Oct 2009 21:26:20 -0000 Received: (qmail 52317 invoked by uid 500); 30 Oct 2009 21:26:18 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 52215 invoked by uid 500); 30 Oct 2009 21:26:18 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Delivered-To: moderator for user@commons.apache.org Received: (qmail 25810 invoked by uid 99); 30 Oct 2009 11:29:17 -0000 X-ASF-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Message-ID: <4AEACDD8.3090304@absinth.fi> Date: Fri, 30 Oct 2009 13:28:24 +0200 From: "Rami Ojares / PDF-Comics Oy" User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: user@commons.apache.org Subject: Compress: ArArchiveEntry Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, Why are all the attributes of ArArchiveEntry made non-mutable. Here I refer to things like lastModified, mode etc. They have no setters and if that wasn't bad enough they have been made private and final. My use case: ArArchiveEntry ae = new ArArchiveEntry(inputFile, entryName); ae.setLastModified(someTimeValue); archiveOutputStream.putArchiveEntry(ae); Now all I can do is copy the line from constructor ArArchiveEntry ae = (entryName, inputFile.isFile() ? inputFile.length() : 0, 0, 0, 0, someTimeValue); - rami --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org