Java org.apache.commons.compress.archivers.zip ZipArchiveEntry fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.compress.archivers.zip ZipArchiveEntry fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.compress.archivers.zip ZipArchiveEntry.

The text is from its open source code.

Field

Constructor

ZipArchiveEntry(String name)
Creates a new zip entry with the specified name.
ZipArchiveEntry(java.util.zip.ZipEntry entry)
Creates a new zip entry with fields taken from the specified zip entry.
ZipArchiveEntry(ZipArchiveEntry entry)
Creates a new zip entry with fields taken from the specified zip entry.
ZipArchiveEntry(File inputFile, String entryName)
Creates a new zip entry taking some information from the given file and using the provided name.

Method

voidaddExtraField(ZipExtraField ze)
Adds an extra field - replacing an already present extra field of the same type.
Objectclone()
Overwrite clone.
StringgetComment()
Returns the comment string for the entry.
longgetCompressedSize()
Returns the size of the compressed entry data.
longgetCrc()
Returns the CRC-32 checksum of the uncompressed entry data.
longgetExternalAttributes()
Retrieves the external file attributes.
byte[]getExtra()
Returns the extra field data for the entry.
ZipExtraFieldgetExtraField(ZipShort type)
Looks up an extra field by its header id.
ZipExtraField[]getExtraFields(boolean includeUnparseable)
Retrieves extra fields.
ZipExtraField[]getExtraFields()
Retrieves all extra fields that have been parsed successfully.
GeneralPurposeBitgetGeneralPurposeBit()
The "general purpose bit" field.
intgetInternalAttributes()
Retrieves the internal file attributes.
DategetLastModifiedDate()
byte[]getLocalFileDataExtra()
Retrieves the extra data for the local file data.
intgetMethod()
Returns the compression method of this entry, or -1 if the compression method has not been specified.
StringgetName()
Get the name of the entry.
intgetPlatform()
Platform specification to put into the "version made by" part of the central file header.
byte[]getRawName()
Returns the raw bytes that made up the name before it has been converted using the configured or guessed encoding.
longgetSize()
Returns the uncompressed size of the entry data.
longgetTime()
Returns the last modification time of the entry.
intgetUnixMode()
Unix permission.
UnparseableExtraFieldDatagetUnparseableExtraFieldData()
Looks up extra field data that couldn't be parsed correctly.
booleanisDirectory()
Is this entry a directory?
voidremoveExtraField(ZipShort type)
Remove an extra field.
voidsetComment(String comment)
Sets the optional comment string for the entry.
voidsetCompressedSize(long csize)
Sets the size of the compressed entry data.
voidsetCrc(long crc)
Sets the CRC-32 checksum of the uncompressed entry data.
ZipEntrysetCreationTime(FileTime time)
Sets the creation time of the entry.
voidsetExternalAttributes(long value)
Sets the external file attributes.
voidsetExtra(byte[] extra)
Parses the given bytes as extra field data and consumes any unparseable data as an UnparseableExtraFieldData instance.
voidsetExtraFields(ZipExtraField[] fields)
Replaces all currently attached extra fields with the new array.
voidsetInternalAttributes(int value)
Sets the internal file attributes.
ZipEntrysetLastAccessTime(FileTime time)
Sets the last access time of the entry.
ZipEntrysetLastModifiedTime(FileTime time)
Sets the last modification time of the entry.
voidsetMethod(int method)
Sets the compression method of this entry.
voidsetSize(long size)
Sets the uncompressed size of the entry data.
voidsetTime(long time)
Sets the last modification time of the entry.
voidsetUnixMode(int mode)
Sets Unix permissions in a way that is understood by Info-Zip's unzip command.