Uses of Class
org.apache.commons.compress.archivers.zip.ZipArchiveEntry
Packages that use ZipArchiveEntry
Package
Description
Provides stream classes for reading and writing archives using
the ZIP format with some extensions for the special case of JAR
archives.
Provides stream classes for reading and writing archives using
the ZIP format.
EXPERIMENTAL support for changesets that are applied to
archives.
-
Uses of ZipArchiveEntry in org.apache.commons.compress.archivers.jar
Subclasses of ZipArchiveEntry in org.apache.commons.compress.archivers.jarConstructors in org.apache.commons.compress.archivers.jar with parameters of type ZipArchiveEntry -
Uses of ZipArchiveEntry in org.apache.commons.compress.archivers.zip
Subclasses of ZipArchiveEntry in org.apache.commons.compress.archivers.zipModifier and TypeClassDescriptionprivate static class
Extends ZipArchiveEntry to store the offset within the archive.Fields in org.apache.commons.compress.archivers.zip declared as ZipArchiveEntryModifier and TypeFieldDescription(package private) static final ZipArchiveEntry[]
ZipArchiveEntry.EMPTY_ZIP_ARCHIVE_ENTRY_ARRAY
private final ZipArchiveEntry
UnsupportedZipFeatureException.entry
private final ZipArchiveEntry
ZipArchiveInputStream.CurrentEntry.entry
Current ZIP entry.private final ZipArchiveEntry
ZipArchiveOutputStream.CurrentEntry.entry
Current ZIP entry.private final ZipArchiveEntry
ZipArchiveEntryRequest.zipArchiveEntry
Fields in org.apache.commons.compress.archivers.zip with type parameters of type ZipArchiveEntryModifier and TypeFieldDescriptionprivate final List<ZipArchiveEntry>
ZipArchiveOutputStream.entries
List of ZipArchiveEntries written so far.private final List<ZipArchiveEntry>
ZipFile.entries
List of entries in the order they appear inside the central directory.private final Map<ZipArchiveEntry,
ZipArchiveOutputStream.EntryMetaData> ZipArchiveOutputStream.metaData
Holds some book-keeping data for each entry.private final Map<String,
LinkedList<ZipArchiveEntry>> ZipFile.nameMap
Maps String to list of ZipArchiveEntrys, name -> actual entries.private final Comparator<ZipArchiveEntry>
ZipFile.offsetComparator
Compares two ZipArchiveEntries based on their offset within the archive.Methods in org.apache.commons.compress.archivers.zip that return ZipArchiveEntryModifier and TypeMethodDescriptionUnsupportedZipFeatureException.getEntry()
The entry using the unsupported feature.Returns a named entry - ornull
if no entry by that name exists.ZipArchiveInputStream.getNextZipEntry()
(package private) ZipArchiveEntry
ZipArchiveEntryRequest.getZipArchiveEntry()
Gets the underlying entry.ScatterZipOutputStream.CompressedEntry.transferToArchiveEntry()
Update the originalZipArchiveEntry
with sizes/crc Do not use this methods from threads that did not create the instance itself !Methods in org.apache.commons.compress.archivers.zip that return types with arguments of type ZipArchiveEntryModifier and TypeMethodDescriptionZipFile.getEntries()
Returns all entries.ZipFile.getEntries
(String name) Returns all named entries in the same order they appear within the archive's central directory.ZipFile.getEntriesInPhysicalOrder()
Returns all entries in physical order.ZipFile.getEntriesInPhysicalOrder
(String name) Returns all named entries in the same order their contents appear within the archive.private Map<ZipArchiveEntry,
ZipFile.NameAndComment> ZipFile.populateFromCentralDirectory()
Reads the central directory of the given archive and populates the internal tables with ZipArchiveEntry instances.Methods in org.apache.commons.compress.archivers.zip with parameters of type ZipArchiveEntryModifier and TypeMethodDescriptionvoid
ParallelScatterZipCreator.addArchiveEntry
(ZipArchiveEntry zipArchiveEntry, InputStreamSupplier source) Adds an archive entry to this archive.void
ZipArchiveOutputStream.addRawArchiveEntry
(ZipArchiveEntry entry, InputStream rawStream) Adds an archive entry with a raw input stream.private void
ZipArchiveOutputStream.addUnicodeExtraFields
(ZipArchiveEntry ze, boolean encodable, ByteBuffer name) Adds UnicodeExtra fields for name and file comment if mode is ALWAYS or the data cannot be encoded using the configured encoding.(package private) static boolean
ZipUtil.canHandleEntryData
(ZipArchiveEntry entry) Whether this library is able to read or write the given entry.boolean
ZipFile.canReadEntryData
(ZipArchiveEntry ze) Whether this class is able to read the given entry.(package private) static void
ZipUtil.checkRequestedFeatures
(ZipArchiveEntry ze) Checks whether the entry requires features not (yet) supported by the library and throws an exception if it does.final Callable<ScatterZipOutputStream>
ParallelScatterZipCreator.createCallable
(ZipArchiveEntry zipArchiveEntry, InputStreamSupplier source) Create a callable that will compress the given archive entry.private byte[]
ZipArchiveOutputStream.createCentralFileHeader
(ZipArchiveEntry ze) private byte[]
ZipArchiveOutputStream.createCentralFileHeader
(ZipArchiveEntry ze, ByteBuffer name, ZipArchiveOutputStream.EntryMetaData entryMetaData, boolean needsZip64Extra) Writes the central file header entry.private byte[]
ZipArchiveOutputStream.createLocalFileHeader
(ZipArchiveEntry ze, ByteBuffer name, boolean encodable, boolean phased, long archiveOffset) static ZipArchiveEntryRequest
ZipArchiveEntryRequest.createZipArchiveEntryRequest
(ZipArchiveEntry zipArchiveEntry, InputStreamSupplier payloadSupplier) Create a ZipArchiveEntryRequestprivate long
ZipFile.getDataOffset
(ZipArchiveEntry ze) private Zip64Mode
ZipArchiveOutputStream.getEffectiveZip64Mode
(ZipArchiveEntry ze) If the mode is AsNeeded and the entry is a compressed entry of unknown size that gets written to a non-seekable stream then change the default to Never.private ZipEncoding
ZipArchiveOutputStream.getEntryEncoding
(ZipArchiveEntry ze) (package private) static String
Zip64RequiredException.getEntryTooBigMessage
(ZipArchiveEntry ze) Helper to format "entry too big" messages.ZipFile.getInputStream
(ZipArchiveEntry ze) Returns an InputStream for reading the contents of the given entry.private ByteBuffer
ZipArchiveOutputStream.getName
(ZipArchiveEntry ze) ZipFile.getRawInputStream
(ZipArchiveEntry ze) Expose the raw stream of the archive entry (compressed form).ZipFile.getUnixSymlink
(ZipArchiveEntry entry) Convenience method to return the entry's content as a String if isUnixSymlink() returns true for it, otherwise returns null.ZipArchiveOutputStream.getZip64Extra
(ZipArchiveEntry ze) Get the existing ZIP64 extended information extra field or create a new one and add it to the entry.private void
ZipArchiveOutputStream.handleZip64Extra
(ZipArchiveEntry ze, long lfhOffset, boolean needsZip64Extra) If the entry needs Zip64 extra information inside the central directory then configure its data.private boolean
ZipArchiveOutputStream.hasZip64Extra
(ZipArchiveEntry ze) Is there a ZIP64 extended information extra field for the entry?private boolean
ZipArchiveOutputStream.isTooLargeForZip32
(ZipArchiveEntry zipArchiveEntry) private boolean
ZipArchiveOutputStream.isZip64Required
(ZipArchiveEntry entry1, Zip64Mode requestedMode) private void
ZipFile.sanityCheckLFHOffset
(ZipArchiveEntry ze) private int[]
ZipFile.setDataOffset
(ZipArchiveEntry ze) private void
ZipArchiveOutputStream.setDefaults
(ZipArchiveEntry entry) Provides default values for compression method and last modification time.(package private) static void
ZipUtil.setNameAndCommentFromExtraFields
(ZipArchiveEntry ze, byte[] originalNameBytes, byte[] commentBytes) If the entry has Unicode*ExtraFields and the CRCs of the names/comments match those of the extra fields, transfer the known Unicode values from the extra field.private void
ZipFile.setSizesAndOffsetFromZip64Extra
(ZipArchiveEntry ze) If the entry holds a Zip64 extended information extra field, read sizes from there if the entry's sizes are set to 0xFFFFFFFFF, do the same for the offset of the local file header.private boolean
ZipArchiveOutputStream.shouldAddZip64Extra
(ZipArchiveEntry entry, Zip64Mode mode) Whether to add a Zip64 extended information extra field to the local file header.private boolean
ZipArchiveInputStream.supportsCompressedSizeFor
(ZipArchiveEntry entry) Whether the compressed size for the entry is either known or not required by the compression method being used.private boolean
ZipArchiveInputStream.supportsDataDescriptorFor
(ZipArchiveEntry entry) Whether this entry requires a data descriptor this library can work with.private static boolean
ZipUtil.supportsEncryptionOf
(ZipArchiveEntry entry) Whether this library supports the encryption used by the given entry.private static boolean
ZipUtil.supportsMethodOf
(ZipArchiveEntry entry) Whether this library supports the compression method used by the given entry.boolean
ZipArchiveEntryPredicate.test
(ZipArchiveEntry zipArchiveEntry) Indicate if the given entry should be included in the operationprotected void
ZipArchiveOutputStream.writeCentralFileHeader
(ZipArchiveEntry ze) Writes the central file header entry.protected void
ZipArchiveOutputStream.writeDataDescriptor
(ZipArchiveEntry ze) Writes the data descriptor entry.protected void
ZipArchiveOutputStream.writeLocalFileHeader
(ZipArchiveEntry ze) Writes the local file header entryprivate void
ZipArchiveOutputStream.writeLocalFileHeader
(ZipArchiveEntry ze, boolean phased) Method parameters in org.apache.commons.compress.archivers.zip with type arguments of type ZipArchiveEntryModifier and TypeMethodDescriptionprivate void
ZipFile.readCentralDirectoryEntry
(Map<ZipArchiveEntry, ZipFile.NameAndComment> noUTF8Flag) Reads an individual entry of the central directory, creats an ZipArchiveEntry from it and adds it to the global maps.private void
ZipFile.resolveLocalFileHeaderData
(Map<ZipArchiveEntry, ZipFile.NameAndComment> entriesWithoutUTF8Flag) Walks through all recorded entries and adds the data available from the local file header.Constructors in org.apache.commons.compress.archivers.zip with parameters of type ZipArchiveEntryModifierConstructorDescriptionprivate
CurrentEntry
(ZipArchiveEntry entry) UnsupportedZipFeatureException
(UnsupportedZipFeatureException.Feature reason, ZipArchiveEntry entry) Creates an exception.UnsupportedZipFeatureException
(ZipMethod method, ZipArchiveEntry entry) Creates an exception for archives that use an unsupported compression algorithm.ZipArchiveEntry
(ZipArchiveEntry entry) Creates a new zip entry with fields taken from the specified zip entry.private
ZipArchiveEntryRequest
(ZipArchiveEntry zipArchiveEntry, InputStreamSupplier payloadSupplier) -
Uses of ZipArchiveEntry in org.apache.commons.compress.changes
Fields in org.apache.commons.compress.changes declared as ZipArchiveEntryModifier and TypeFieldDescriptionprivate ZipArchiveEntry
ChangeSetPerformer.ZipFileIterator.current
Fields in org.apache.commons.compress.changes with type parameters of type ZipArchiveEntryModifier and TypeFieldDescriptionprivate final Enumeration<ZipArchiveEntry>
ChangeSetPerformer.ZipFileIterator.nestedEnum