ZipArchiveEntry
Extension that adds better handling of extra fields and provides access to the internal and external file attributes.
The extra data is expected to follow the recommendation of APPNOTE.TXT:
- the extra byte array consists of a sequence of extra fields
- each extra fields starts by a two byte header id followed by a two byte sequence holding the length of the remainder of data.
Any extra data that cannot be parsed by the rules above will be consumed as "unparseable" extra data and treated differently by the methods of this class. Versions prior to Apache Commons Compress 1.1 would have thrown an exception if any attempt was made to read or write extra data not conforming to the recommendation.
Constructors
Link copied to clipboard
Creates a new ZIP entry taking some information from the given file and using the provided name.
Creates a new ZIP entry with fields taken from the specified ZIP entry.
Creates a new ZIP entry with the specified name.
Creates a new ZIP entry with fields taken from the specified ZIP entry.
Types
Link copied to clipboard
enum CommentSource
Indicates how the comment of this entry has been determined.
Link copied to clipboard
How to try to parse the extra fields.
Link copied to clipboard
enum NameSource
Indicates how the name of this entry has been determined.
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The java.util.zip.ZipEntry base class only supports the compression methods STORED and DEFLATED.
Link copied to clipboard
Link copied to clipboard
Special value indicating that the offset is unknown.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Special value indicating that the size is unknown
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Adds an extra field - replacing an already present extra field of the same type.
Link copied to clipboard
Adds an extra field - replacing an already present extra field of the same type.
Link copied to clipboard
Retrieves the extra data for the central directory.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Looks up an extra field by its header id.
Link copied to clipboard
Retrieves extra fields.
Link copied to clipboard
The "general purpose bit" field.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Retrieves the extra data for the local file data.
Link copied to clipboard
Link copied to clipboard
Unix permission.
Link copied to clipboard
Is this entry a directory?
Link copied to clipboard
Returns true if this entry represents a unix symlink, in which case the entry's content contains the target path for the symlink.
Link copied to clipboard
Remove an extra field.
Link copied to clipboard
Sets the central directory part of extra fields.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Parses the given bytes as extra field data and consumes any unparseable data as an UnparseableExtraFieldData instance.
Link copied to clipboard
The "general purpose bit" field.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets Unix permissions in a way that is understood by Info-Zip's unzip command.