commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rami Ojares / PDF-Comics Oy" <rami.oja...@pdf-comics.com>
Subject Compress: ArArchiveEntry
Date Fri, 30 Oct 2009 11:28:24 GMT
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


Mime
View raw message