Extension that adds better handling of extra fields and provides
access to the internal and external file attributes.
author: Stefan Bodewig version: $Revision: 1.12.2.3 $
Constructor Summary
public
ZipEntry(String name) Creates a new zip entry with the specified name.
setExtra(byte[] extra) Throws an Exception if extra data cannot be parsed into extra fields.
protected void
setExtra() Unfortunately
java.util.zip.ZipOutputStreamjava.util.zip.ZipOutputStream seems to access the extra data
directly, so overriding getExtra doesn't help - we need to
modify super's data directly.
Platform specification to put into the "version made
by" part of the central file header.
0 (MS-DOS FAT) unless ZipEntry.setUnixMode setUnixModehas been called, in which case 3 (Unix) will be returned. since: Ant 1.5.2
Unfortunately
java.util.zip.ZipOutputStreamjava.util.zip.ZipOutputStream seems to access the extra data
directly, so overriding getExtra doesn't help - we need to
modify super's data directly.
since: 1.1