Compress: ArArchiveEntry

1 message Options
Embed this post
Permalink
Rami Ojares / PDF-Comics Oy

Compress: ArArchiveEntry

Reply Threaded More More options
Print post
Permalink
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: [hidden email]
For additional commands, e-mail: [hidden email]