Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- act(File) - Method in class org.zeroturnaround.zip.ZipUtil.InPlaceAction
- action - Variable in class org.zeroturnaround.zip.ZipUtil.SingleZipEntryCallback
- addEntries(File, ZipEntrySource[]) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes a zip file it with with new entries.
- addEntries(File, ZipEntrySource[], File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and appends it with new entries.
- addEntries(File, ZipEntrySource[], OutputStream) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and appends it with new entries.
- addEntries(InputStream, ZipEntrySource[], OutputStream) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and appends it with new entries.
- addEntries(ZipEntrySource[]) - Method in class org.zeroturnaround.zip.Zips
-
Specifies entries to add or change to the output when this Zips executes.
- addEntry(File, String, byte[]) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes a zip file, adds one new entry in-place.
- addEntry(File, String, byte[], int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes a zip file, adds one new entry in-place.
- addEntry(File, String, byte[], File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and appends it with one new entry.
- addEntry(File, String, byte[], File, int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and appends it with one new entry.
- addEntry(File, String, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes a zip file, adds one new entry in-place.
- addEntry(File, String, File, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and appends it with one new entry.
- addEntry(File, ZipEntrySource) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes a zip file, adds one new entry in-place.
- addEntry(File, ZipEntrySource, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and appends it with one new entry.
- addEntry(ZipEntry, InputStream, ZipOutputStream) - Static method in class org.zeroturnaround.zip.ZipEntryUtil
-
Adds a given ZIP entry to a ZIP file.
- addEntry(ZipEntrySource) - Method in class org.zeroturnaround.zip.Zips
-
Specifies an entry to add or change to the output when this Zips executes.
- addEntry(ZipEntrySource, ZipOutputStream) - Static method in class org.zeroturnaround.zip.transform.ZipEntrySourceZipEntryTransformer
-
Adds a given ZIP entry to a ZIP file.
- addEntry(ZipEntrySource, ZipOutputStream) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Adds a given ZIP entry to a ZIP file.
- addFile(File) - Method in class org.zeroturnaround.zip.Zips
-
Adds a file entry.
- addFile(File, boolean) - Method in class org.zeroturnaround.zip.Zips
-
Adds a file entry.
- addFile(File, boolean, FileFilter) - Method in class org.zeroturnaround.zip.Zips
-
Adds a file entry.
- addFile(File, FileFilter) - Method in class org.zeroturnaround.zip.Zips
-
Adds a file entry.
- addFlag(boolean, int) - Static method in class org.zeroturnaround.zip.ZTFilePermissionsUtil
- addIf(boolean, Set<E>, E) - Method in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- addOrReplaceEntries(File, ZipEntrySource[]) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes a ZIP file: adds/replaces the given entries in it.
- addOrReplaceEntries(File, ZipEntrySource[], File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and adds/replaces the given entries in it.
- addTransformer(String, ZipEntryTransformer) - Method in class org.zeroturnaround.zip.Zips
-
Registers a transformer for a given entry.
- append(char) - Method in class org.zeroturnaround.zip.commons.StringBuilderWriter
-
Append a single character to this Writer.
- append(CharSequence) - Method in class org.zeroturnaround.zip.commons.StringBuilderWriter
-
Append a character sequence to this Writer.
- append(CharSequence, int, int) - Method in class org.zeroturnaround.zip.commons.StringBuilderWriter
-
Append a portion of a character sequence to the
StringBuilder
. - archiveEquals(File, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compares two ZIP files and returns
true
if they contain same entries. - archiveEqualsInternal(File, File) - Static method in class org.zeroturnaround.zip.ZipUtil
- AsiExtraField - Class in org.zeroturnaround.zip.extra
-
This is a class that has been made significantly smaller (deleted a bunch of methods) and originally is from the Apache Ant Project (http://ant.apache.org), org.apache.tools.zip package.
- AsiExtraField() - Constructor for class org.zeroturnaround.zip.extra.AsiExtraField
-
Constructor for AsiExtraField.
B
- BackslashUnpacker(File) - Constructor for class org.zeroturnaround.zip.ZipUtil.BackslashUnpacker
- BackslashUnpacker(File, NameMapper) - Constructor for class org.zeroturnaround.zip.ZipUtil.BackslashUnpacker
- builder - Variable in class org.zeroturnaround.zip.commons.StringBuilderWriter
- BYTE_1 - Static variable in class org.zeroturnaround.zip.extra.ZipLong
- BYTE_1_MASK - Static variable in class org.zeroturnaround.zip.extra.ZipLong
- BYTE_1_MASK - Static variable in class org.zeroturnaround.zip.extra.ZipShort
- BYTE_1_SHIFT - Static variable in class org.zeroturnaround.zip.extra.ZipLong
- BYTE_1_SHIFT - Static variable in class org.zeroturnaround.zip.extra.ZipShort
- BYTE_2 - Static variable in class org.zeroturnaround.zip.extra.ZipLong
- BYTE_2_MASK - Static variable in class org.zeroturnaround.zip.extra.ZipLong
- BYTE_2_SHIFT - Static variable in class org.zeroturnaround.zip.extra.ZipLong
- BYTE_3 - Static variable in class org.zeroturnaround.zip.extra.ZipLong
- BYTE_3_MASK - Static variable in class org.zeroturnaround.zip.extra.ZipLong
- BYTE_3_SHIFT - Static variable in class org.zeroturnaround.zip.extra.ZipLong
- BYTE_MASK - Static variable in class org.zeroturnaround.zip.extra.ZipConstants
-
Masks last eight bits
- ByteArrayUnpacker() - Constructor for class org.zeroturnaround.zip.ZipUtil.ByteArrayUnpacker
- ByteArrayZipEntryTransformer - Class in org.zeroturnaround.zip.transform
- ByteArrayZipEntryTransformer() - Constructor for class org.zeroturnaround.zip.transform.ByteArrayZipEntryTransformer
- bytes - Variable in class org.zeroturnaround.zip.ByteSource
- bytes - Variable in class org.zeroturnaround.zip.ZipUtil.ByteArrayUnpacker
- ByteSource - Class in org.zeroturnaround.zip
- ByteSource(String, byte[]) - Constructor for class org.zeroturnaround.zip.ByteSource
- ByteSource(String, byte[], int) - Constructor for class org.zeroturnaround.zip.ByteSource
- ByteSource(String, byte[], long) - Constructor for class org.zeroturnaround.zip.ByteSource
- ByteSource(String, byte[], long, int) - Constructor for class org.zeroturnaround.zip.ByteSource
C
- canExecute(File) - Method in class org.zeroturnaround.zip.Java6FileApiPermissionsStrategy
- canExecuteMethod - Variable in class org.zeroturnaround.zip.Java6FileApiPermissionsStrategy
- centralData - Variable in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
-
Extra field data in central directory - without Header-ID or length specifier.
- CFH_SIG - Static variable in class org.zeroturnaround.zip.extra.ZipLong
-
Central File Header Signature
- changedEntries - Variable in class org.zeroturnaround.zip.Zips
-
List
- charset - Variable in class org.zeroturnaround.zip.Zips
-
Charset to use for entry names
- charset(Charset) - Method in class org.zeroturnaround.zip.Zips
-
Specifies charset for this Zips execution
- checkDestinationFileForTraversal(File, String, File) - Static method in class org.zeroturnaround.zip.ZipUtil
- cleanDirectory(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Cleans a directory without deleting it.
- cleanDirectoryOnExit(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Cleans a directory without deleting it.
- clone() - Method in class org.zeroturnaround.zip.extra.AsiExtraField
- clone() - Method in class org.zeroturnaround.zip.extra.ZipLong
- clone() - Method in class org.zeroturnaround.zip.extra.ZipShort
- close() - Method in class org.zeroturnaround.zip.CloseShieldInputStream
- close() - Method in class org.zeroturnaround.zip.commons.StringBuilderWriter
-
Closing this writer has no effect.
- closeQuietly(Closeable) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Unconditionally close a
Closeable
. - closeQuietly(InputStream) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Unconditionally close an
InputStream
. - closeQuietly(OutputStream) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Unconditionally close an
OutputStream
. - closeQuietly(ZipFile) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Closes the ZIP file while ignoring any errors.
- CloseShieldInputStream - Class in org.zeroturnaround.zip
-
Filter stream that prevents the underlying input stream from being closed.
- CloseShieldInputStream(InputStream) - Constructor for class org.zeroturnaround.zip.CloseShieldInputStream
-
Creates a
FilterInputStream
by assigning the argumentin
to the fieldthis.in
so as to remember it for later use. - closeStream() - Method in class org.zeroturnaround.zip.ZipUtil.RepackZipEntryCallback
- compressionMethod - Variable in class org.zeroturnaround.zip.ByteSource
- CONSTRUCTOR_MESSAGE_FOR_INPUT - Static variable in class org.zeroturnaround.zip.ZipFileUtil
- CONSTRUCTOR_MESSAGE_FOR_OUTPUT - Static variable in class org.zeroturnaround.zip.ZipFileUtil
- CONSTRUCTOR_MESSAGE_FOR_ZIPFILE - Static variable in class org.zeroturnaround.zip.ZipFileUtil
- containsAnyEntry(File, String[]) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Checks if the ZIP file contains any of the given entries.
- containsEntry(File, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Checks if the ZIP file contains the given entry.
- containsEntry(String) - Method in class org.zeroturnaround.zip.Zips
-
Alias to ZipUtil.containsEntry()
- contentEquals(File, File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Compares the contents of two files to determine if they are equal or not.
- contentEquals(InputStream, InputStream) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Compare the contents of two Streams to determine if they are equal or not.
- copy(byte[]) - Static method in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
-
Create a copy of the given array - or return null if the argument is null.
- copy(File, OutputStream) - Static method in class org.zeroturnaround.zip.commons.FileUtils
-
Copies the given file into an output stream.
- copy(InputStream, File) - Static method in class org.zeroturnaround.zip.commons.FileUtils
-
Copies the given input stream into a file.
- copy(InputStream, File) - Static method in class org.zeroturnaround.zip.transform.FileZipEntryTransformer
- copy(InputStream, OutputStream) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Copy bytes from an
InputStream
to anOutputStream
. - copy(InputStream, Writer) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Copy bytes from an
InputStream
to chars on aWriter
using the default character encoding of the platform. - copy(InputStream, Writer, String) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Copy bytes from an
InputStream
to chars on aWriter
using the specified character encoding. - copy(Reader, Writer) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Copy chars from a
Reader
to aWriter
. - copy(ZipEntry) - Static method in class org.zeroturnaround.zip.ZipEntryUtil
-
Copy entry
- copy(ZipEntry, String) - Static method in class org.zeroturnaround.zip.ZipEntryUtil
-
Copy entry with another name.
- copyDirectory(File, File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Copies a whole directory to a new location preserving the file dates.
- copyDirectory(File, File, boolean) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Copies a whole directory to a new location.
- copyDirectory(File, File, FileFilter, boolean) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Copies a filtered directory to a new location.
- copyEntries(File, ZipOutputStream) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies all entries from one ZIP file to another.
- copyEntries(File, ZipOutputStream, Set<String>) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies all entries from one ZIP file to another, ignoring entries with path in ignoredEntries
- copyEntries(InputStream, ZipOutputStream) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies all entries from one ZIP stream to another.
- copyEntry(ZipEntry, InputStream, ZipOutputStream) - Static method in class org.zeroturnaround.zip.ZipEntryUtil
-
Copies a given ZIP entry to a ZIP file.
- copyEntry(ZipEntry, InputStream, ZipOutputStream, boolean) - Static method in class org.zeroturnaround.zip.ZipEntryUtil
-
Copies a given ZIP entry to a ZIP file.
- copyFile(File, File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Copies a file to a new location preserving the file date.
- copyFile(File, File, boolean) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Copies a file to a new location.
- copyFileToDirectory(File, File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Copies a file to a directory preserving the file date.
- copyFileToDirectory(File, File, boolean) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Copies a file to a directory optionally preserving the file date.
- CopyingCallback(List<ZipEntryTransformerEntry>, ZipOutputStream, boolean) - Constructor for class org.zeroturnaround.zip.Zips.CopyingCallback
- copyLarge(InputStream, OutputStream) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Copy bytes from a large (over 2GB)
InputStream
to anOutputStream
. - copyLarge(InputStream, OutputStream, byte[]) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Copy bytes from a large (over 2GB)
InputStream
to anOutputStream
. - copyLarge(Reader, Writer) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Copy chars from a large (over 2GB)
Reader
to aWriter
. - copyLarge(Reader, Writer, char[]) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Copy chars from a large (over 2GB)
Reader
to aWriter
. - crc - Variable in class org.zeroturnaround.zip.ByteSource
- crc - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
Instance used to calculate checksums.
- create() - Static method in class org.zeroturnaround.zip.Zips
-
Static factory method to obtain an instance of Zips without source file.
- createEmpty(File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Creates an empty ZIP archive at the location of the provided file.
- createExtraField(ZipShort) - Static method in class org.zeroturnaround.zip.extra.ExtraFieldUtils
-
Create an instance of the appropriate ExtraField, falls back to
UnrecognizedExtraField
. - createZipInputStream(InputStream, Charset) - Static method in class org.zeroturnaround.zip.ZipFileUtil
-
Returns a ZipInputStream opened with a given charset.
- createZipOutputStream(BufferedOutputStream, Charset) - Static method in class org.zeroturnaround.zip.ZipFileUtil
-
Returns a ZipOutputStream opened with a given charset.
D
- DATA_DESCRIPTOR_MIN_VERSION - Static variable in class org.zeroturnaround.zip.extra.ZipConstants
-
ZIP specification version that introduced data descriptor method
- DD_SIG - Static variable in class org.zeroturnaround.zip.extra.ZipLong
-
Data Descriptor signature
- DEFAULT_BUFFER_SIZE - Static variable in class org.zeroturnaround.zip.commons.IOUtils
-
The default buffer size (4096) to use for
IOUtils.copyLarge(InputStream, OutputStream)
andIOUtils.copyLarge(Reader, Writer)
- DEFAULT_COMPRESSION_LEVEL - Static variable in class org.zeroturnaround.zip.ZipUtil
-
Default compression level
- DEFAULT_DIR_PERM - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
Default permissions for directories.
- DEFAULT_FILE_PERM - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
Default permissions for plain files.
- DEFAULT_LINK_PERM - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
Default permissions for symbolic links.
- DEFAULT_STRATEGY - Static variable in class org.zeroturnaround.zip.ZTFilePermissionsUtil
- deleteDirectory(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Deletes a directory recursively.
- deleteDirectoryOnExit(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Schedules a directory recursively for deletion on JVM exit.
- deleteQuietly(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Deletes a file, never throwing an exception.
- dest - Variable in class org.zeroturnaround.zip.Zips
-
Optional destination archive, if null, src will be overwritten
- destination - Variable in class org.zeroturnaround.zip.Zips.UnpackingCallback
- destination(File) - Method in class org.zeroturnaround.zip.Zips
-
Specifies destination file for this Zips execution, if destination is null (default value), then source file will be overwritten.
- DIR_FLAG - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
Indicates directories.
- DIR_SEPARATOR - Static variable in class org.zeroturnaround.zip.commons.IOUtils
-
The system directory separator character.
- DIR_SEPARATOR_UNIX - Static variable in class org.zeroturnaround.zip.commons.IOUtils
-
The Unix directory separator character.
- DIR_SEPARATOR_WINDOWS - Static variable in class org.zeroturnaround.zip.commons.IOUtils
-
The Windows directory separator character.
- dirFlag - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
Is this an entry for a directory?
- doCopyDirectory(File, File, FileFilter, boolean, List<String>) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Internal copy directory method.
- doCopyFile(File, File, boolean) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Internal copy file method.
- doEntryEquals(ZipFile, ZipFile, String, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compares two ZIP entries (byte-by-byte).
- doUnpackEntry(ZipFile, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a single entry from a ZIP file.
- doUnpackEntry(ZipFile, String, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a single file from a ZIP archive to a file.
- DWORD - Static variable in class org.zeroturnaround.zip.extra.ZipConstants
-
length of a ZipEightByteInteger in bytes
E
- EMPTY_FILE_ARRAY - Static variable in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
An empty array of type
File
. - encoding - Variable in class org.zeroturnaround.zip.transform.StringZipEntryTransformer
-
The encoding to use, null means platform default.
- entriesByPath(ZipEntrySource...) - Static method in class org.zeroturnaround.zip.ZipUtil
- entryByPath - Variable in class org.zeroturnaround.zip.Zips.CopyingCallback
- entryByPath - Variable in class org.zeroturnaround.zip.Zips.UnpackingCallback
- entryByPath - Variable in class org.zeroturnaround.zip.ZipUtil.TransformerZipEntryCallback
- entryCallback - Variable in class org.zeroturnaround.zip.ZipEntryOrInfoAdapter
- entryCount - Variable in class org.zeroturnaround.zip.ZipUtil.TransformerZipEntryCallback
- entryEquals(File, File, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compares same entry in two ZIP files (byte-by-byte).
- entryEquals(File, File, String, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compares two ZIP entries (byte-by-byte).
- entryEquals(ZipFile, ZipFile, String, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compares two ZIP entries (byte-by-byte).
- EOF - Static variable in class org.zeroturnaround.zip.commons.IOUtils
- equals(Object) - Method in class org.zeroturnaround.zip.extra.ZipLong
-
Override to make two instances with same value equal.
- equals(Object) - Method in class org.zeroturnaround.zip.extra.ZipShort
-
Override to make two instances with same value equal.
- Example: Copy directories and txt files - Search tag in org.zeroturnaround.zip.commons.FileUtilsV2_2.copyDirectory(File, File, FileFilter, boolean)
- Section
- Example: Copy directories only - Search tag in org.zeroturnaround.zip.commons.FileUtilsV2_2.copyDirectory(File, File, FileFilter, boolean)
- Section
- explode(File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a ZIP file to its own location.
- EXTENSION_SEPARATOR - Static variable in class org.zeroturnaround.zip.commons.FilenameUtils
-
The extension separator character.
- EXTENSION_SEPARATOR_STR - Static variable in class org.zeroturnaround.zip.commons.FilenameUtils
-
The extension separator String.
- ExtraFieldUtils - Class in org.zeroturnaround.zip.extra
-
This is a class that has been made significantly smaller (deleted a bunch of methods) and originally is from the Apache Ant Project (http://ant.apache.org), org.apache.tools.zip package.
- ExtraFieldUtils() - Constructor for class org.zeroturnaround.zip.extra.ExtraFieldUtils
F
- fetchDefaultStrategy() - Static method in class org.zeroturnaround.zip.ZTFilePermissionsUtil
- file - Variable in class org.zeroturnaround.zip.FileSource
- file - Variable in class org.zeroturnaround.zip.ZipUtil.FileUnpacker
- FILE_COPY_BUFFER_SIZE - Static variable in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
The file copy buffer size (30 MB)
- FILE_FLAG - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
Indicates plain files.
- FileExistsException - Exception Class in org.zeroturnaround.zip.commons
-
Indicates that a file already exists.
- FileExistsException() - Constructor for exception class org.zeroturnaround.zip.commons.FileExistsException
-
Default Constructor.
- FileExistsException(File) - Constructor for exception class org.zeroturnaround.zip.commons.FileExistsException
-
Construct an instance with the specified file.
- FileExistsException(String) - Constructor for exception class org.zeroturnaround.zip.commons.FileExistsException
-
Construct an instance with the specified message.
- FilenameUtils - Class in org.zeroturnaround.zip.commons
-
This is a class that has been made significantly smaller (deleted a bunch of methods) and originally is from the Apache Commons IO 2.2 package (the latest version that supports Java 1.5).
- FilenameUtils() - Constructor for class org.zeroturnaround.zip.commons.FilenameUtils
-
Instances should NOT be constructed in standard programming.
- filesClass - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- FileSource - Class in org.zeroturnaround.zip
- FileSource(String, File) - Constructor for class org.zeroturnaround.zip.FileSource
- FileUnpacker(File) - Constructor for class org.zeroturnaround.zip.ZipUtil.FileUnpacker
- FileUtils - Class in org.zeroturnaround.zip.commons
-
This class adds some convenience methods on top of Apache CommonsIO FileUtils.
- FileUtils() - Constructor for class org.zeroturnaround.zip.commons.FileUtils
-
Instances should NOT be constructed in standard programming.
- FileUtilsV2_2 - Class in org.zeroturnaround.zip.commons
-
This is a class that has been made significantly smaller (deleted a bunch of methods) and originally is from the Apache Commons IO 2.2 package (the latest version that supports Java 1.5).
- FileUtilsV2_2() - Constructor for class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Instances should NOT be constructed in standard programming.
- FileZipEntryTransformer - Class in org.zeroturnaround.zip.transform
- FileZipEntryTransformer() - Constructor for class org.zeroturnaround.zip.transform.FileZipEntryTransformer
- filterDirEntries(File, Collection<String>) - Static method in class org.zeroturnaround.zip.ZipUtil
- flush() - Method in class org.zeroturnaround.zip.commons.StringBuilderWriter
-
Flushing this writer has no effect.
- forceDelete(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Deletes a file.
- forceDeleteOnExit(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Schedules a file to be deleted when JVM exits.
- forceMkdir(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Makes a directory, including any necessary but nonexistent parent directories.
- found - Variable in class org.zeroturnaround.zip.ZipUtil.SingleZipEntryCallback
- found() - Method in class org.zeroturnaround.zip.ZipUtil.SingleZipEntryCallback
- found() - Method in class org.zeroturnaround.zip.ZipUtil.TransformerZipEntryCallback
- fromFile(String, File) - Static method in class org.zeroturnaround.zip.ZipEntryUtil
-
Create new Zip entry and fill it with associated with file meta-info
- fromPosixFileMode(int) - Static method in class org.zeroturnaround.zip.ZTFilePermissionsUtil
-
Convert Posix mode to
ZTFilePermissions
G
- get(File) - Static method in class org.zeroturnaround.zip.Zips
-
Static factory method to obtain an instance of Zips.
- getBuilder() - Method in class org.zeroturnaround.zip.commons.StringBuilderWriter
-
Return the underlying builder.
- getBytes() - Method in class org.zeroturnaround.zip.extra.ZipLong
-
Get value as four bytes in big endian byte order.
- getBytes() - Method in class org.zeroturnaround.zip.extra.ZipShort
-
Get value as two bytes in big endian byte order.
- getBytes() - Method in class org.zeroturnaround.zip.ZipUtil.ByteArrayUnpacker
- getBytes(int) - Static method in class org.zeroturnaround.zip.extra.ZipShort
-
Get value as two bytes in big endian byte order.
- getBytes(long) - Static method in class org.zeroturnaround.zip.extra.ZipLong
-
Get value as four bytes in big endian byte order.
- getCentralDirectoryData() - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Delegate to local file data.
- getCentralDirectoryData() - Method in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
-
Get the central data.
- getCentralDirectoryData() - Method in interface org.zeroturnaround.zip.extra.ZipExtraField
-
The actual data to put into central directory - without Header-ID or length specifier.
- getCentralDirectoryLength() - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Delegate to local file data.
- getCentralDirectoryLength() - Method in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
-
Get the central data length.
- getCentralDirectoryLength() - Method in interface org.zeroturnaround.zip.extra.ZipExtraField
-
Length of the extra field in the central directory - without Header-ID or length specifier.
- getClassForName(String, Class<T>) - Static method in class org.zeroturnaround.zip.ZTZipReflectionUtil
- getCompressionLevelOfEntry(File, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Deprecated.The compression level cannot be retrieved. This method exists only to ensure backwards compatibility with ZipUtil version 1.9, which returned the compression method, not the level.
- getCompressionMethodOfEntry(File, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Returns the compression method of a given entry of the ZIP file.
- getDeclaredMethod(Class<?>, String, Class<?>...) - Static method in class org.zeroturnaround.zip.ZTZipReflectionUtil
- getDefaultStategy() - Static method in class org.zeroturnaround.zip.ZTFilePermissionsUtil
-
Get most appropriate
ZTFilePermissionsStrategy
based on Java version and OS. - getDestinationFile() - Method in class org.zeroturnaround.zip.Zips
- getEntry() - Method in class org.zeroturnaround.zip.ByteSource
- getEntry() - Method in class org.zeroturnaround.zip.FileSource
- getEntry() - Method in interface org.zeroturnaround.zip.ZipEntrySource
- getEntry(String) - Method in class org.zeroturnaround.zip.Zips
-
Alias to ZipUtil.getEntry()
- getFirstAsiExtraField(List<ZipExtraField>) - Static method in class org.zeroturnaround.zip.ZipEntryUtil
- getGroupId() - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Get the group id.
- getHeaderId() - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
The Header-ID.
- getHeaderId() - Method in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
-
Get the header id.
- getHeaderId() - Method in interface org.zeroturnaround.zip.extra.ZipExtraField
-
The Header-ID.
- getInputStream() - Method in class org.zeroturnaround.zip.ByteSource
- getInputStream() - Method in class org.zeroturnaround.zip.FileSource
- getInputStream() - Method in interface org.zeroturnaround.zip.ZipEntrySource
- getInstance() - Static method in class org.zeroturnaround.zip.timestamps.TimestampStrategyFactory
- getLinkedFile() - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Name of linked file
- getLocalFileDataData() - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
The actual data to put into local file data - without Header-ID or length specifier.
- getLocalFileDataData() - Method in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
-
Get the local data.
- getLocalFileDataData() - Method in interface org.zeroturnaround.zip.extra.ZipExtraField
-
The actual data to put into local file data - without Header-ID or length specifier.
- getLocalFileDataLength() - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Length of the extra field in the local file data - without Header-ID or length specifier.
- getLocalFileDataLength() - Method in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
-
Get the length of the local data.
- getLocalFileDataLength() - Method in interface org.zeroturnaround.zip.extra.ZipExtraField
-
Length of the extra field in the local file data - without Header-ID or length specifier.
- getMode() - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
File mode of this file.
- getMode(int) - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Get the file mode for given permissions with the correct file type.
- getPath() - Method in class org.zeroturnaround.zip.ByteSource
- getPath() - Method in class org.zeroturnaround.zip.FileSource
- getPath() - Method in class org.zeroturnaround.zip.transform.ZipEntryTransformerEntry
- getPath() - Method in interface org.zeroturnaround.zip.ZipEntrySource
- getPermissions(File) - Method in class org.zeroturnaround.zip.Java6FileApiPermissionsStrategy
- getPermissions(File) - Method in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- getPermissions(File) - Method in interface org.zeroturnaround.zip.ZTFilePermissionsStrategy
-
Get
ZTFilePermissions
from file. - getPosixFilePermissions(File) - Method in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- getPosixFilePermissionsMethod - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- getPrefixLength(String) - Static method in class org.zeroturnaround.zip.commons.FilenameUtils
-
Returns the length of the filename prefix, such as
C:/
or~/
. - getRelativePath(File, File) - Method in class org.zeroturnaround.zip.Zips
- getRootName(String) - Method in class org.zeroturnaround.zip.ZipUtil.Unwrapper
- getStrategy() - Static method in class org.zeroturnaround.zip.timestamps.TimestampStrategyFactory
- getTempFileFor(File) - Static method in class org.zeroturnaround.zip.commons.FileUtils
-
Find a non-existing file in the same directory using the same name as prefix.
- getTransformer() - Method in class org.zeroturnaround.zip.transform.ZipEntryTransformerEntry
- getUnrootedName(String, String) - Method in class org.zeroturnaround.zip.ZipUtil.Unwrapper
- getUserId() - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Get the user id.
- getValue() - Method in class org.zeroturnaround.zip.extra.ZipLong
-
Get value as Java long.
- getValue() - Method in class org.zeroturnaround.zip.extra.ZipShort
-
Get value as Java int.
- getValue(byte[]) - Static method in class org.zeroturnaround.zip.extra.ZipLong
-
Helper method to get the value as a Java long from a four-byte array
- getValue(byte[]) - Static method in class org.zeroturnaround.zip.extra.ZipShort
-
Helper method to get the value as a java int from a two-byte array
- getValue(byte[], int) - Static method in class org.zeroturnaround.zip.extra.ZipLong
-
Helper method to get the value as a Java long from four bytes starting at given array offset
- getValue(byte[], int) - Static method in class org.zeroturnaround.zip.extra.ZipShort
-
Helper method to get the value as a java int from two bytes starting at given array offset
- getZipFile() - Method in class org.zeroturnaround.zip.Zips
-
Creates a ZipFile from src and charset of this object.
- getZipFile(File, Charset) - Static method in class org.zeroturnaround.zip.ZipFileUtil
-
Returns a zipFile opened with a given charset
- getZTFilePermissions(ZipEntry) - Static method in class org.zeroturnaround.zip.ZipEntryUtil
-
Get assigned to ZIP entry file permissions info.
- gid - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
Group ID.
- GROUP_EXECUTE - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- GROUP_EXECUTE_FLAG - Static variable in class org.zeroturnaround.zip.ZTFilePermissionsUtil
- GROUP_READ - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- GROUP_READ_FLAG - Static variable in class org.zeroturnaround.zip.ZTFilePermissionsUtil
- GROUP_WRITE - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- GROUP_WRITE_FLAG - Static variable in class org.zeroturnaround.zip.ZTFilePermissionsUtil
- groupCanExecute - Variable in class org.zeroturnaround.zip.ZTFilePermissions
- groupCanRead - Variable in class org.zeroturnaround.zip.ZTFilePermissions
- groupCanWrite - Variable in class org.zeroturnaround.zip.ZTFilePermissions
H
- handle(File, String, ZipEntryCallback) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Reads the given ZIP file and executes the given action for a single entry.
- handle(InputStream, String, ZipEntryCallback) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Reads the given ZIP stream and executes the given action for a single entry.
- handleInPlaceActions(File) - Method in class org.zeroturnaround.zip.Zips
-
if we are doing something in place, move result file into src.
- HAS_ZIP_ENTRY_FILE_TIME_METHODS - Static variable in class org.zeroturnaround.zip.timestamps.TimestampStrategyFactory
- hashCode() - Method in class org.zeroturnaround.zip.extra.ZipLong
-
Override to make two instances with same value equal.
- hashCode() - Method in class org.zeroturnaround.zip.extra.ZipShort
-
Override to make two instances with same value equal.
- hasZipEntryFileTimeMethods() - Static method in class org.zeroturnaround.zip.timestamps.TimestampStrategyFactory
- HEADER_ID - Static variable in class org.zeroturnaround.zip.extra.AsiExtraField
- headerId - Variable in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
-
The Header-ID.
I
- IdentityNameMapper - Class in org.zeroturnaround.zip
-
NOP implementation of the name mapper.
- IdentityNameMapper() - Constructor for class org.zeroturnaround.zip.IdentityNameMapper
- implementations - Static variable in class org.zeroturnaround.zip.extra.ExtraFieldUtils
-
Static registry of known extra fields.
- infoCallback - Variable in class org.zeroturnaround.zip.ZipEntryOrInfoAdapter
- INITIAL_VERSION - Static variable in class org.zeroturnaround.zip.extra.ZipConstants
-
Initial ZIP specification version
- innerListFiles(File, Collection<File>, FileFilter) - Static method in class org.zeroturnaround.zip.ZTFileUtil
- InPlaceAction() - Constructor for class org.zeroturnaround.zip.ZipUtil.InPlaceAction
- INSTANCE - Static variable in class org.zeroturnaround.zip.IdentityNameMapper
- INSTANCE - Static variable in class org.zeroturnaround.zip.timestamps.TimestampStrategyFactory
- invoke(Method, Object, Object...) - Static method in class org.zeroturnaround.zip.ZTZipReflectionUtil
- IOUtils - Class in org.zeroturnaround.zip.commons
-
This is a class that has been made significantly smaller (deleted a bunch of methods) and originally is from the Apache Commons IO 2.2 package (the latest version that supports Java 1.5).
- IOUtils() - Constructor for class org.zeroturnaround.zip.commons.IOUtils
-
Instances should NOT be constructed in standard programming.
- isCharsetSupported() - Static method in class org.zeroturnaround.zip.ZipFileUtil
-
Returns
true
if charsets are supported in this JRE. - isDirectory - Variable in class org.zeroturnaround.zip.ZTFilePermissions
- isDirectory() - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Is this entry a directory?
- isDirectory() - Method in class org.zeroturnaround.zip.ZTFilePermissions
- isEntryInDir(Set<String>, String) - Method in class org.zeroturnaround.zip.Zips
-
Checks if entry given by name resides inside of one of the dirs.
- isGroupCanExecute() - Method in class org.zeroturnaround.zip.ZTFilePermissions
- isGroupCanRead() - Method in class org.zeroturnaround.zip.ZTFilePermissions
- isGroupCanWrite() - Method in class org.zeroturnaround.zip.ZTFilePermissions
- isInPlace() - Method in class org.zeroturnaround.zip.Zips
- isLink() - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Is this entry a symbolic link?
- isOthersCanExecute() - Method in class org.zeroturnaround.zip.ZTFilePermissions
- isOthersCanRead() - Method in class org.zeroturnaround.zip.ZTFilePermissions
- isOthersCanWrite() - Method in class org.zeroturnaround.zip.ZTFilePermissions
- isOwnerCanExecute() - Method in class org.zeroturnaround.zip.ZTFilePermissions
- isOwnerCanRead() - Method in class org.zeroturnaround.zip.ZTFilePermissions
- isOwnerCanWrite() - Method in class org.zeroturnaround.zip.ZTFilePermissions
- isPosix() - Static method in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- isSeparator(char) - Static method in class org.zeroturnaround.zip.commons.FilenameUtils
-
Checks if the character is a separator.
- isSymlink(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Determines whether the specified file is a Symbolic Link rather than an actual file.
- isSystemWindows() - Static method in class org.zeroturnaround.zip.commons.FilenameUtils
-
Determines if Windows file system is in use.
- isUnpack() - Method in class org.zeroturnaround.zip.Zips
- iterate(File, String[], ZipEntryCallback) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Reads the given ZIP file and executes the given action for each given entry.
- iterate(File, String[], ZipEntryCallback, Charset) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Reads the given ZIP file and executes the given action for each given entry.
- iterate(File, String[], ZipInfoCallback) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Scans the given ZIP file and executes the given action for each given entry.
- iterate(File, ZipEntryCallback) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Reads the given ZIP file and executes the given action for each entry.
- iterate(File, ZipEntryCallback, Charset) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Reads the given ZIP file and executes the given action for each entry.
- iterate(File, ZipInfoCallback) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Scans the given ZIP file and executes the given action for each entry.
- iterate(InputStream, String[], ZipEntryCallback) - Static method in class org.zeroturnaround.zip.ZipUtil
- iterate(InputStream, String[], ZipEntryCallback, Charset) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Reads the given ZIP stream and executes the given action for each given entry.
- iterate(InputStream, ZipEntryCallback) - Static method in class org.zeroturnaround.zip.ZipUtil
- iterate(InputStream, ZipEntryCallback, Charset) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Reads the given ZIP stream and executes the given action for each entry.
- iterate(ZipEntryCallback) - Method in class org.zeroturnaround.zip.Zips
-
Reads the source ZIP file and executes the given callback for each entry.
- iterate(ZipInfoCallback) - Method in class org.zeroturnaround.zip.Zips
-
Scans the source ZIP file and executes the given callback for each entry.
- iterateChangedAndAdded(ZipEntryOrInfoAdapter) - Method in class org.zeroturnaround.zip.Zips
-
Iterate through ZipEntrySources for added or changed entries with a given callback
- iterateExistingExceptRemoved(ZipEntryOrInfoAdapter) - Method in class org.zeroturnaround.zip.Zips
-
Iterate through source for not removed entries with a given callback
J
- Java6FileApiPermissionsStrategy - Class in org.zeroturnaround.zip
- Java6FileApiPermissionsStrategy() - Constructor for class org.zeroturnaround.zip.Java6FileApiPermissionsStrategy
- Java7Nio2ApiPermissionsStrategy - Class in org.zeroturnaround.zip
-
ZTFilePermissionsStrategy which uses Java 7 posix file permissions
- Java7Nio2ApiPermissionsStrategy() - Constructor for class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- Java8TimestampStrategy - Class in org.zeroturnaround.zip.timestamps
-
This strategy will call lastModifiedTime, creationTime and lastAccessTime methods (added in Java 8).
- Java8TimestampStrategy() - Constructor for class org.zeroturnaround.zip.timestamps.Java8TimestampStrategy
L
- LFH_SIG - Static variable in class org.zeroturnaround.zip.extra.ZipLong
-
Local File Header Signature
- LINE_SEPARATOR - Static variable in class org.zeroturnaround.zip.commons.IOUtils
-
The system line separator string.
- LINE_SEPARATOR_UNIX - Static variable in class org.zeroturnaround.zip.commons.IOUtils
-
The Unix line separator string.
- LINE_SEPARATOR_WINDOWS - Static variable in class org.zeroturnaround.zip.commons.IOUtils
-
The Windows line separator string.
- link - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
File this entry points to, if it is a symbolic link.
- LINK_FLAG - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
Indicates symbolic links.
- linkOptionClass - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- linkOptionsArray - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- listFiles(File) - Static method in class org.zeroturnaround.zip.ZTFileUtil
- listFiles(File, FileFilter) - Static method in class org.zeroturnaround.zip.ZTFileUtil
- localData - Variable in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
-
Extra field data in local file data - without Header-ID or length specifier.
- log - Static variable in class org.zeroturnaround.zip.ZipUtil
M
- makeDestinationFile(File, String) - Static method in class org.zeroturnaround.zip.ZipUtil
- MaliciousZipException - Exception Class in org.zeroturnaround.zip
- MaliciousZipException(File, String) - Constructor for exception class org.zeroturnaround.zip.MaliciousZipException
- map(String) - Method in class org.zeroturnaround.zip.IdentityNameMapper
- map(String) - Method in interface org.zeroturnaround.zip.NameMapper
- mapper - Variable in class org.zeroturnaround.zip.ZipUtil.BackslashUnpacker
- mapper - Variable in class org.zeroturnaround.zip.ZipUtil.Unpacker
- mapper - Variable in class org.zeroturnaround.zip.ZipUtil.Unwrapper
- mergeLocalFileDataData(List<ZipExtraField>) - Static method in class org.zeroturnaround.zip.extra.ExtraFieldUtils
-
Merges the local file data fields of the given ZipExtraFields.
- metaDataEquals(String, ZipEntry, ZipEntry) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compares meta-data of two ZIP entries.
- MISSING_METHOD_PLEASE_UPGRADE - Static variable in class org.zeroturnaround.zip.ZipFileUtil
- mode - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
Standard Unix stat(2) file mode.
- moveDirectory(File, File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Moves a directory.
- moveFile(File, File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Moves a file.
N
- name - Variable in class org.zeroturnaround.zip.ZipUtil.SingleZipEntryCallback
- nameMapper - Variable in class org.zeroturnaround.zip.Zips
- nameMapper(NameMapper) - Method in class org.zeroturnaround.zip.Zips
- NameMapper - Interface in org.zeroturnaround.zip
-
Call-back for filtering and renaming ZIP entries while packing or unpacking.
- names - Variable in class org.zeroturnaround.zip.ZipUtil.TransformerZipEntryCallback
- newCloseShieldZipInputStream(InputStream, Charset) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Creates a new
ZipInputStream
based on the givenInputStream
. - NOP_STRATEGY - Static variable in class org.zeroturnaround.zip.ZTFilePermissionsUtil
-
Empty
ZTFilePermissionsStrategy
implementation.
O
- ONE_EB - Static variable in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
The number of bytes in an exabyte.
- ONE_GB - Static variable in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
The number of bytes in a gigabyte.
- ONE_KB - Static variable in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
The number of bytes in a kilobyte.
- ONE_MB - Static variable in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
The number of bytes in a megabyte.
- ONE_PB - Static variable in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
The number of bytes in a petabyte.
- ONE_TB - Static variable in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
The number of bytes in a terabyte.
- ONE_YB - Static variable in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
The number of bytes in a yottabyte.
- ONE_ZB - Static variable in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
The number of bytes in a zettabyte.
- openInputStream(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Opens a
FileInputStream
for the specified file, providing better error messages than simply callingnew FileInputStream(file)
. - openOutputStream(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Opens a
FileOutputStream
for the specified file, checking and creating the parent directory if it does not exist. - openOutputStream(File, boolean) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Opens a
FileOutputStream
for the specified file, checking and creating the parent directory if it does not exist. - operateInPlace(File, ZipUtil.InPlaceAction) - Static method in class org.zeroturnaround.zip.ZipUtil
-
This method provides a general infrastructure for in-place operations.
- org.zeroturnaround.zip - package org.zeroturnaround.zip
- org.zeroturnaround.zip.commons - package org.zeroturnaround.zip.commons
- org.zeroturnaround.zip.extra - package org.zeroturnaround.zip.extra
- org.zeroturnaround.zip.timestamps - package org.zeroturnaround.zip.timestamps
- org.zeroturnaround.zip.transform - package org.zeroturnaround.zip.transform
- OTHERS_EXECUTE - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- OTHERS_EXECUTE_FLAG - Static variable in class org.zeroturnaround.zip.ZTFilePermissionsUtil
- OTHERS_READ - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- OTHERS_READ_FLAG - Static variable in class org.zeroturnaround.zip.ZTFilePermissionsUtil
- OTHERS_WRITE - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- OTHERS_WRITE_FLAG - Static variable in class org.zeroturnaround.zip.ZTFilePermissionsUtil
- othersCanExecute - Variable in class org.zeroturnaround.zip.ZTFilePermissions
- othersCanRead - Variable in class org.zeroturnaround.zip.ZTFilePermissions
- othersCanWrite - Variable in class org.zeroturnaround.zip.ZTFilePermissions
- out - Variable in class org.zeroturnaround.zip.Zips.CopyingCallback
- out - Variable in class org.zeroturnaround.zip.ZipUtil.RepackZipEntryCallback
- out - Variable in class org.zeroturnaround.zip.ZipUtil.TransformerZipEntryCallback
- outputDir - Variable in class org.zeroturnaround.zip.ZipUtil.BackslashUnpacker
- outputDir - Variable in class org.zeroturnaround.zip.ZipUtil.Unpacker
- outputDir - Variable in class org.zeroturnaround.zip.ZipUtil.Unwrapper
- OWNER_EXECUTE - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- OWNER_EXECUTE_FLAG - Static variable in class org.zeroturnaround.zip.ZTFilePermissionsUtil
- OWNER_READ - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- OWNER_READ_FLAG - Static variable in class org.zeroturnaround.zip.ZTFilePermissionsUtil
- OWNER_WRITE - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- OWNER_WRITE_FLAG - Static variable in class org.zeroturnaround.zip.ZTFilePermissionsUtil
- ownerCanExecute - Variable in class org.zeroturnaround.zip.ZTFilePermissions
- ownerCanRead - Variable in class org.zeroturnaround.zip.ZTFilePermissions
- ownerCanWrite - Variable in class org.zeroturnaround.zip.ZTFilePermissions
P
- pack(File, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given directory and all its sub-directories into a ZIP file.
- pack(File, File, boolean) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given directory and all its sub-directories into a ZIP file.
- pack(File, File, int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given directory and all its sub-directories into a ZIP file.
- pack(File, File, NameMapper) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given directory and all its sub-directories into a ZIP file.
- pack(File, File, NameMapper, int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given directory and all its sub-directories into a ZIP file.
- pack(File, OutputStream) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given directory and all of its sub-directories into the passed in stream.
- pack(File, OutputStream, int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given directory and all of its sub-directories into the passed in stream.
- pack(File, OutputStream, NameMapper) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given directory and all of its sub-directories into the passed in stream.
- pack(File, OutputStream, NameMapper, int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given directory and all of its sub-directories into the passed in stream.
- pack(File, ZipOutputStream, NameMapper, String, boolean) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given directory and all its sub-directories into a ZIP file.
- pack(ZipEntrySource[], File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given entries into a new ZIP file.
- pack(ZipEntrySource[], OutputStream) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given entries into an output stream.
- pack(ZipEntrySource[], OutputStream, boolean) - Static method in class org.zeroturnaround.zip.ZipUtil
- packEntries(File[], File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given files into a ZIP file.
- packEntries(File[], File, int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given files into a ZIP file.
- packEntries(File[], File, NameMapper) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given files into a ZIP file.
- packEntries(File[], File, NameMapper, int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given files into a ZIP file.
- packEntry(File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given file into a ZIP file with single entry.
- packEntry(File, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given file into a ZIP file.
- packEntry(File, File, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given file into a ZIP file.
- packEntry(File, File, NameMapper) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses the given file into a ZIP file.
- pair(File[], String[]) - Static method in class org.zeroturnaround.zip.FileSource
-
Creates a sequence of FileSource objects via mapping a sequence of files to the sequence of corresponding names for the entries
- parse(byte[]) - Static method in class org.zeroturnaround.zip.extra.ExtraFieldUtils
-
Split the array into ExtraFields and populate them with the given data as local file data, throwing an exception if the data cannot be parsed.
- parseA(byte[]) - Static method in class org.zeroturnaround.zip.extra.ExtraFieldUtils
- parseFromCentralDirectoryData(byte[], int, int) - Method in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
- parseFromLocalFileData(byte[], int, int) - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Populate data from this array as if it was in local file data.
- parseFromLocalFileData(byte[], int, int) - Method in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
- parseFromLocalFileData(byte[], int, int) - Method in interface org.zeroturnaround.zip.extra.ZipExtraField
-
Populate data from this array as if it was in local file data.
- path - Variable in class org.zeroturnaround.zip.ByteSource
- path - Variable in class org.zeroturnaround.zip.FileSource
- path - Variable in class org.zeroturnaround.zip.transform.ZipEntryTransformerEntry
- PATH_SEPARATOR - Static variable in class org.zeroturnaround.zip.ZipUtil
- pathClass - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- PERM_MASK - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
Bits used for permissions (and sticky bit)
- posixFilePermissionClass - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- PreJava8TimestampStrategy - Class in org.zeroturnaround.zip.timestamps
-
Setting the timestamp in pre-java-8 environments.
- PreJava8TimestampStrategy() - Constructor for class org.zeroturnaround.zip.timestamps.PreJava8TimestampStrategy
- preserveTimestamps - Variable in class org.zeroturnaround.zip.Zips
-
Flag to carry timestamps of entries on.
- preserveTimestamps() - Method in class org.zeroturnaround.zip.transform.ByteArrayZipEntryTransformer
-
Override to return true if needed.
- preserveTimestamps() - Method in class org.zeroturnaround.zip.Zips
-
Enables timestamp preserving for this Zips execution
- preserveTimestapms - Variable in class org.zeroturnaround.zip.Zips.CopyingCallback
- process() - Method in class org.zeroturnaround.zip.Zips
-
Iterates through source Zip entries removing or changing them according to set parameters.
- process(InputStream, ZipEntry) - Method in interface org.zeroturnaround.zip.ZipEntryCallback
-
Invoked for each entry in a ZIP file.
- process(InputStream, ZipEntry) - Method in class org.zeroturnaround.zip.ZipEntryOrInfoAdapter
- process(InputStream, ZipEntry) - Method in class org.zeroturnaround.zip.Zips.CopyingCallback
- process(InputStream, ZipEntry) - Method in class org.zeroturnaround.zip.Zips.UnpackingCallback
- process(InputStream, ZipEntry) - Method in class org.zeroturnaround.zip.ZipUtil.BackslashUnpacker
- process(InputStream, ZipEntry) - Method in class org.zeroturnaround.zip.ZipUtil.ByteArrayUnpacker
- process(InputStream, ZipEntry) - Method in class org.zeroturnaround.zip.ZipUtil.FileUnpacker
- process(InputStream, ZipEntry) - Method in class org.zeroturnaround.zip.ZipUtil.RepackZipEntryCallback
- process(InputStream, ZipEntry) - Method in class org.zeroturnaround.zip.ZipUtil.SingleZipEntryCallback
- process(InputStream, ZipEntry) - Method in class org.zeroturnaround.zip.ZipUtil.TransformerZipEntryCallback
- process(InputStream, ZipEntry) - Method in class org.zeroturnaround.zip.ZipUtil.Unpacker
- process(InputStream, ZipEntry) - Method in class org.zeroturnaround.zip.ZipUtil.Unwrapper
- process(ZipEntry) - Method in class org.zeroturnaround.zip.ZipEntryOrInfoAdapter
- process(ZipEntry) - Method in interface org.zeroturnaround.zip.ZipInfoCallback
-
Invoked for each entry in a ZIP file.
- processAllEntries(ZipEntryOrInfoAdapter) - Method in class org.zeroturnaround.zip.Zips
R
- readFileToString(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Reads the contents of a file into a String using the default encoding for the VM.
- readFileToString(File, String) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Reads the contents of a file into a String.
- register(Class<?>) - Static method in class org.zeroturnaround.zip.extra.ExtraFieldUtils
-
Register a ZipExtraField implementation.
- removedEntries - Variable in class org.zeroturnaround.zip.Zips
-
Set
- removeEntries(File, String[]) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes an existing ZIP file: removes entries with given paths.
- removeEntries(File, String[], File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and removes entries with given paths.
- removeEntries(File, String[], OutputStream) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and removes entries with given paths.
- removeEntries(String[]) - Method in class org.zeroturnaround.zip.Zips
-
Specifies entries to remove to the output when this Zips executes.
- removeEntry(File, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes an existing ZIP file: removes entry with a given path.
- removeEntry(File, String, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and removes entry with a given path.
- removeEntry(String) - Method in class org.zeroturnaround.zip.Zips
-
Specifies an entry to remove to the output when this Zips executes.
- repack(File, int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Repacks a provided ZIP file and replaces old file with the new one.
- repack(File, File, int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Repacks a provided ZIP file into a new ZIP with a given compression level.
- repack(InputStream, File, int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Repacks a provided ZIP input stream into a ZIP file with a given compression level.
- RepackZipEntryCallback(File, int) - Constructor for class org.zeroturnaround.zip.ZipUtil.RepackZipEntryCallback
- replaceEntries(File, ZipEntrySource[]) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes an existing ZIP file: replaces a given entry in it.
- replaceEntries(File, ZipEntrySource[], File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and replaces the given entries in it.
- replaceEntry(File, String, byte[]) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes an existing ZIP file: replaces a given entry in it.
- replaceEntry(File, String, byte[], int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes an existing ZIP file: replaces a given entry in it.
- replaceEntry(File, String, byte[], File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and replaces a given entry in it.
- replaceEntry(File, String, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes an existing ZIP file: replaces a given entry in it.
- replaceEntry(File, String, File, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and replaces a given entry in it.
- replaceEntry(File, ZipEntrySource) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes an existing ZIP file: replaces a given entry in it.
- replaceEntry(File, ZipEntrySource, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and replaces a given entry in it.
- rethrow(IOException) - Static method in class org.zeroturnaround.zip.ZipExceptionUtil
-
Rethrow the given exception as a runtime exception.
- rootDir - Variable in class org.zeroturnaround.zip.ZipUtil.Unwrapper
S
- serialVersionUID - Static variable in exception class org.zeroturnaround.zip.commons.FileExistsException
-
Defines the serial version UID.
- setCentralDirectoryData(byte[]) - Method in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
-
Set the extra field data in central directory.
- setDirectory(boolean) - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Indicate whether this entry is a directory.
- setDirectory(boolean) - Method in class org.zeroturnaround.zip.ZTFilePermissions
- setExecutable(File, boolean, boolean) - Method in class org.zeroturnaround.zip.Java6FileApiPermissionsStrategy
- setExecutableMethod - Variable in class org.zeroturnaround.zip.Java6FileApiPermissionsStrategy
- setGroupCanExecute(boolean) - Method in class org.zeroturnaround.zip.ZTFilePermissions
- setGroupCanRead(boolean) - Method in class org.zeroturnaround.zip.ZTFilePermissions
- setGroupCanWrite(boolean) - Method in class org.zeroturnaround.zip.ZTFilePermissions
- setGroupId(int) - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Set the group id.
- setHeaderId(ZipShort) - Method in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
-
Set the header id.
- setLinkedFile(String) - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Indicate that this entry is a symbolic link to the given filename.
- setLocalFileDataData(byte[]) - Method in class org.zeroturnaround.zip.extra.UnrecognizedExtraField
-
Set the extra field data in the local file data - without Header-ID or length specifier.
- setMode(int) - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
File mode of this file.
- setOthersCanExecute(boolean) - Method in class org.zeroturnaround.zip.ZTFilePermissions
- setOthersCanRead(boolean) - Method in class org.zeroturnaround.zip.ZTFilePermissions
- setOthersCanWrite(boolean) - Method in class org.zeroturnaround.zip.ZTFilePermissions
- setOwnerCanExecute(boolean) - Method in class org.zeroturnaround.zip.ZTFilePermissions
- setOwnerCanRead(boolean) - Method in class org.zeroturnaround.zip.ZTFilePermissions
- setOwnerCanWrite(boolean) - Method in class org.zeroturnaround.zip.ZTFilePermissions
- setPermissions(File, ZTFilePermissions) - Method in class org.zeroturnaround.zip.Java6FileApiPermissionsStrategy
- setPermissions(File, ZTFilePermissions) - Method in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- setPermissions(File, ZTFilePermissions) - Method in interface org.zeroturnaround.zip.ZTFilePermissionsStrategy
-
Set
ZTFilePermissions
to file - setPosixFilePermissions(File, Set<?>) - Method in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- setPosixFilePermissionsMethod - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- setPreserveTimestamps(boolean) - Method in class org.zeroturnaround.zip.Zips
-
Specifies timestamp preserving for this Zips execution
- setReadable(File, boolean, boolean) - Method in class org.zeroturnaround.zip.Java6FileApiPermissionsStrategy
- setReadableMethod - Variable in class org.zeroturnaround.zip.Java6FileApiPermissionsStrategy
- setTime(ZipEntry, ZipEntry) - Method in class org.zeroturnaround.zip.timestamps.Java8TimestampStrategy
- setTime(ZipEntry, ZipEntry) - Method in class org.zeroturnaround.zip.timestamps.PreJava8TimestampStrategy
- setTime(ZipEntry, ZipEntry) - Method in interface org.zeroturnaround.zip.timestamps.TimestampStrategy
- setUserId(int) - Method in class org.zeroturnaround.zip.extra.AsiExtraField
-
Set the user id.
- setWritable(File, boolean, boolean) - Method in class org.zeroturnaround.zip.Java6FileApiPermissionsStrategy
- setWritableMethod - Variable in class org.zeroturnaround.zip.Java6FileApiPermissionsStrategy
- setZTFilePermissions(ZipEntry, ZTFilePermissions) - Static method in class org.zeroturnaround.zip.ZipEntryUtil
-
Add file permissions info to ZIP entry.
- SHORT - Static variable in class org.zeroturnaround.zip.extra.ZipConstants
-
length of a ZipShort in bytes
- SingleZipEntryCallback(String, ZipEntryCallback) - Constructor for class org.zeroturnaround.zip.ZipUtil.SingleZipEntryCallback
- sizeOf(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Returns the size of the specified file or directory.
- sizeOfDirectory(File) - Static method in class org.zeroturnaround.zip.commons.FileUtilsV2_2
-
Counts the size of a directory recursively (sum of the length of all files).
- source - Variable in class org.zeroturnaround.zip.transform.ZipEntrySourceZipEntryTransformer
- src - Variable in class org.zeroturnaround.zip.Zips
-
Source archive.
- StreamZipEntryTransformer - Class in org.zeroturnaround.zip.transform
- StreamZipEntryTransformer() - Constructor for class org.zeroturnaround.zip.transform.StreamZipEntryTransformer
- StringBuilderWriter - Class in org.zeroturnaround.zip.commons
-
Writer
implementation that outputs to aStringBuilder
. - StringBuilderWriter() - Constructor for class org.zeroturnaround.zip.commons.StringBuilderWriter
-
Construct a new
StringBuilder
instance with default capacity. - StringBuilderWriter(int) - Constructor for class org.zeroturnaround.zip.commons.StringBuilderWriter
-
Construct a new
StringBuilder
instance with the specified capacity. - StringBuilderWriter(StringBuilder) - Constructor for class org.zeroturnaround.zip.commons.StringBuilderWriter
-
Construct a new instance with the specified
StringBuilder
. - StringZipEntryTransformer - Class in org.zeroturnaround.zip.transform
- StringZipEntryTransformer() - Constructor for class org.zeroturnaround.zip.transform.StringZipEntryTransformer
- StringZipEntryTransformer(String) - Constructor for class org.zeroturnaround.zip.transform.StringZipEntryTransformer
- SYSTEM_SEPARATOR - Static variable in class org.zeroturnaround.zip.commons.FilenameUtils
-
The system separator character.
T
- time - Variable in class org.zeroturnaround.zip.ByteSource
- TimestampStrategy - Interface in org.zeroturnaround.zip.timestamps
-
Strategy that we use to differentiate between JDK8 and older JDK ZipEntry method calls.
- TimestampStrategyFactory - Class in org.zeroturnaround.zip.timestamps
-
The getInstance() of this method will return a JDK8 implementation when running on JVM 8 and a no operation instance when running on older JVM.
- TimestampStrategyFactory() - Constructor for class org.zeroturnaround.zip.timestamps.TimestampStrategyFactory
- toByteArray(InputStream) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Get the contents of an
InputStream
as abyte[]
. - toPath(File) - Method in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
-
Construct java.nio.file.Path object from abstract path.
- toPathMethod - Variable in class org.zeroturnaround.zip.Java7Nio2ApiPermissionsStrategy
- toPosixFileMode(ZTFilePermissions) - Static method in class org.zeroturnaround.zip.ZTFilePermissionsUtil
-
Convert
ZTFilePermissions
to POSIX file permission bit array. - toString() - Method in class org.zeroturnaround.zip.ByteSource
- toString() - Method in class org.zeroturnaround.zip.commons.StringBuilderWriter
-
Returns
StringBuilder.toString()
. - toString() - Method in class org.zeroturnaround.zip.extra.ZipLong
- toString() - Method in class org.zeroturnaround.zip.extra.ZipShort
- toString() - Method in class org.zeroturnaround.zip.FileSource
- toString() - Method in class org.zeroturnaround.zip.transform.ZipEntryTransformerEntry
- toString(InputStream, String) - Static method in class org.zeroturnaround.zip.commons.IOUtils
-
Get the contents of an
InputStream
as a String using the specified character encoding. - transform(InputStream, ZipEntry, ZipOutputStream) - Method in class org.zeroturnaround.zip.transform.ByteArrayZipEntryTransformer
-
Transforms the zip entry given as an input stream and ZipEntry metadata.
- transform(InputStream, ZipEntry, ZipOutputStream) - Method in class org.zeroturnaround.zip.transform.FileZipEntryTransformer
-
Copies the input stream to the file, then transforms the file.
- transform(InputStream, ZipEntry, ZipOutputStream) - Method in class org.zeroturnaround.zip.transform.StreamZipEntryTransformer
-
Transforms the input stream entry, writes that to output stream, closes entry in the output stream.
- transform(InputStream, ZipEntry, ZipOutputStream) - Method in class org.zeroturnaround.zip.transform.StringZipEntryTransformer
- transform(InputStream, ZipEntry, ZipOutputStream) - Method in class org.zeroturnaround.zip.transform.ZipEntrySourceZipEntryTransformer
- transform(InputStream, ZipEntry, ZipOutputStream) - Method in interface org.zeroturnaround.zip.transform.ZipEntryTransformer
-
Transforms the zip entry given as an input stream and ZipEntry metadata.
- transform(ZipEntry, byte[]) - Method in class org.zeroturnaround.zip.transform.ByteArrayZipEntryTransformer
-
Transforms the given byte array into a new one.
- transform(ZipEntry, File, File) - Method in class org.zeroturnaround.zip.transform.FileZipEntryTransformer
-
Copies and transforms the given file into the output file.
- transform(ZipEntry, InputStream, OutputStream) - Method in class org.zeroturnaround.zip.transform.StreamZipEntryTransformer
-
Copies and transforms the given input stream into the output stream.
- transform(ZipEntry, String) - Method in class org.zeroturnaround.zip.transform.StringZipEntryTransformer
-
Transforms the given String into a new one.
- transformEntries(File, ZipEntryTransformerEntry[]) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes an existing ZIP file: transforms a given entries in it.
- transformEntries(File, ZipEntryTransformerEntry[], File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and transforms the given entries in it.
- transformEntries(InputStream, ZipEntryTransformerEntry[], OutputStream) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and transforms the given entries in it.
- transformEntry(File, String, ZipEntryTransformer) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes an existing ZIP file: transforms a given entry in it.
- transformEntry(File, String, ZipEntryTransformer, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and transforms a given entry in it.
- transformEntry(File, ZipEntryTransformerEntry) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Changes an existing ZIP file: transforms a given entry in it.
- transformEntry(File, ZipEntryTransformerEntry, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and transforms a given entry in it.
- transformEntry(InputStream, String, ZipEntryTransformer, OutputStream) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and transforms a given entry in it.
- transformEntry(InputStream, ZipEntryTransformerEntry, OutputStream) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Copies an existing ZIP file and transforms a given entry in it.
- transformer - Variable in class org.zeroturnaround.zip.transform.ZipEntryTransformerEntry
- transformers - Variable in class org.zeroturnaround.zip.Zips
-
List
- transformersByPath(List<ZipEntryTransformerEntry>) - Static method in class org.zeroturnaround.zip.ZipUtil
- TransformerZipEntryCallback(List<ZipEntryTransformerEntry>, ZipOutputStream) - Constructor for class org.zeroturnaround.zip.ZipUtil.TransformerZipEntryCallback
- transformIntoFile(ZipEntryTransformer, InputStream, ZipEntry, File) - Method in class org.zeroturnaround.zip.Zips.UnpackingCallback
- tryInstantiateStrategy(Class<? extends ZTFilePermissionsStrategy>) - Static method in class org.zeroturnaround.zip.ZTFilePermissionsUtil
U
- uid - Variable in class org.zeroturnaround.zip.extra.AsiExtraField
-
User ID.
- unexplode(File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses a given directory in its own location.
- unexplode(File, int) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Compresses a given directory in its own location.
- UNIX_SEPARATOR - Static variable in class org.zeroturnaround.zip.commons.FilenameUtils
-
The Unix separator character.
- unpack() - Method in class org.zeroturnaround.zip.Zips
- unpack(File, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a ZIP file to the given directory.
- unpack(File, File, Charset) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a ZIP file to the given directory using a specific Charset for the input file.
- unpack(File, File, NameMapper) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a ZIP file to the given directory using a specific Charset for the input file.
- unpack(File, File, NameMapper, Charset) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a ZIP file to the given directory.
- unpack(InputStream, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a ZIP stream to the given directory.
- unpack(InputStream, File, Charset) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a ZIP stream to the given directory.
- unpack(InputStream, File, NameMapper) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a ZIP stream to the given directory.
- unpack(InputStream, File, NameMapper, Charset) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a ZIP stream to the given directory.
- unpackedResult - Variable in class org.zeroturnaround.zip.Zips
-
Flag to show that we want the final result to be unpacked
- unpackEntry(File, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a single entry from a ZIP file.
- unpackEntry(File, String, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a single file from a ZIP archive to a file.
- unpackEntry(File, String, File, Charset) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a single file from a ZIP archive to a file.
- unpackEntry(File, String, Charset) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a single entry from a ZIP file.
- unpackEntry(InputStream, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a single entry from a ZIP stream.
- unpackEntry(InputStream, String, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a single file from a ZIP stream to a file.
- unpackEntry(ZipFile, String) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a single entry from a ZIP file.
- unpackEntry(ZipFile, String, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unpacks a single file from a ZIP archive to a file.
- Unpacker(File, NameMapper) - Constructor for class org.zeroturnaround.zip.ZipUtil.Unpacker
- UnpackingCallback(List<ZipEntryTransformerEntry>, File) - Constructor for class org.zeroturnaround.zip.Zips.UnpackingCallback
- UnrecognizedExtraField - Class in org.zeroturnaround.zip.extra
-
This is a class that has been made significantly smaller (deleted a bunch of methods) and originally is from the Apache Ant Project (http://ant.apache.org), org.apache.tools.zip package.
- UnrecognizedExtraField() - Constructor for class org.zeroturnaround.zip.extra.UnrecognizedExtraField
- unwrap(File, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unwraps a ZIP file to the given directory shaving of root dir.
- unwrap(File, File, NameMapper) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unwraps a ZIP file to the given directory shaving of root dir.
- unwrap(InputStream, File) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unwraps a ZIP file to the given directory shaving of root dir.
- unwrap(InputStream, File, NameMapper) - Static method in class org.zeroturnaround.zip.ZipUtil
-
Unwraps a ZIP file to the given directory shaving of root dir.
- Unwrapper(File, NameMapper) - Constructor for class org.zeroturnaround.zip.ZipUtil.Unwrapper
V
- value - Variable in class org.zeroturnaround.zip.extra.ZipLong
- value - Variable in class org.zeroturnaround.zip.extra.ZipShort
- visitedNames - Variable in class org.zeroturnaround.zip.Zips.CopyingCallback
- visitedNames - Variable in class org.zeroturnaround.zip.Zips.UnpackingCallback
W
- WINDOWS_SEPARATOR - Static variable in class org.zeroturnaround.zip.commons.FilenameUtils
-
The Windows separator character.
- WORD - Static variable in class org.zeroturnaround.zip.extra.AsiExtraField
- WORD - Static variable in class org.zeroturnaround.zip.extra.ExtraFieldUtils
- WORD - Static variable in class org.zeroturnaround.zip.extra.ZipConstants
-
length of a ZipLong in bytes
- write(char[], int, int) - Method in class org.zeroturnaround.zip.commons.StringBuilderWriter
-
Write a portion of a character array to the
StringBuilder
. - write(String) - Method in class org.zeroturnaround.zip.commons.StringBuilderWriter
-
Write a String to the
StringBuilder
.
Z
- ZIP64_MAGIC - Static variable in class org.zeroturnaround.zip.extra.ZipConstants
-
Value stored in four-byte size and similar fields if ZIP64 extensions are used.
- ZIP64_MAGIC - Static variable in class org.zeroturnaround.zip.extra.ZipLong
-
Value stored in size and similar fields if ZIP64 extensions are used.
- ZIP64_MAGIC_SHORT - Static variable in class org.zeroturnaround.zip.extra.ZipConstants
-
Value stored in two-byte size and similar fields if ZIP64 extensions are used.
- ZIP64_MIN_VERSION - Static variable in class org.zeroturnaround.zip.extra.ZipConstants
-
ZIP specification version that introduced ZIP64
- ZipBreakException - Exception Class in org.zeroturnaround.zip
- ZipBreakException() - Constructor for exception class org.zeroturnaround.zip.ZipBreakException
- ZipBreakException(Exception) - Constructor for exception class org.zeroturnaround.zip.ZipBreakException
- ZipBreakException(String) - Constructor for exception class org.zeroturnaround.zip.ZipBreakException
- ZipConstants - Class in org.zeroturnaround.zip.extra
-
This is a class that has been made significantly smaller (deleted a bunch of methods) and originally is from the Apache Ant Project (http://ant.apache.org), org.apache.tools.zip package.
- ZipConstants() - Constructor for class org.zeroturnaround.zip.extra.ZipConstants
- ZipEntryCallback - Interface in org.zeroturnaround.zip
-
Call-back for traversing ZIP entries with their contents.
- ZipEntryOrInfoAdapter - Class in org.zeroturnaround.zip
- ZipEntryOrInfoAdapter(ZipEntryCallback, ZipInfoCallback) - Constructor for class org.zeroturnaround.zip.ZipEntryOrInfoAdapter
- ZipEntrySource - Interface in org.zeroturnaround.zip
-
ZIP entry with its contents.
- ZipEntrySourceZipEntryTransformer - Class in org.zeroturnaround.zip.transform
- ZipEntrySourceZipEntryTransformer(ZipEntrySource) - Constructor for class org.zeroturnaround.zip.transform.ZipEntrySourceZipEntryTransformer
- ZipEntryTransformer - Interface in org.zeroturnaround.zip.transform
-
Call-back for traversing ZIP entries with their contents and producing a new ZIP file as an output.
- ZipEntryTransformerEntry - Class in org.zeroturnaround.zip.transform
-
A transformer assigned to a certain ZIP entry.
- ZipEntryTransformerEntry(String, ZipEntryTransformer) - Constructor for class org.zeroturnaround.zip.transform.ZipEntryTransformerEntry
- ZipEntryUtil - Class in org.zeroturnaround.zip
-
Util class for static methods shared between ZipUtil and Zips.
- ZipEntryUtil() - Constructor for class org.zeroturnaround.zip.ZipEntryUtil
- ZipException - Exception Class in org.zeroturnaround.zip
- ZipException(Exception) - Constructor for exception class org.zeroturnaround.zip.ZipException
- ZipException(String) - Constructor for exception class org.zeroturnaround.zip.ZipException
- ZipException(String, Throwable) - Constructor for exception class org.zeroturnaround.zip.ZipException
- ZipExceptionUtil - Class in org.zeroturnaround.zip
- ZipExceptionUtil() - Constructor for class org.zeroturnaround.zip.ZipExceptionUtil
- ZipExtraField - Interface in org.zeroturnaround.zip.extra
-
This is a class that has been made significantly smaller (deleted a bunch of methods) and originally is from the Apache Ant Project (http://ant.apache.org), org.apache.tools.zip package.
- ZipFileUtil - Class in org.zeroturnaround.zip
-
Mainly methods to lookup Zip* class constructors.
- ZipFileUtil() - Constructor for class org.zeroturnaround.zip.ZipFileUtil
- ZipInfoCallback - Interface in org.zeroturnaround.zip
-
Call-back for traversing ZIP entries without their contents.
- ZipLong - Class in org.zeroturnaround.zip.extra
-
This is a class that has been made significantly smaller (deleted a bunch of methods) and originally is from the Apache Ant Project (http://ant.apache.org), org.apache.tools.zip package.
- ZipLong(byte[]) - Constructor for class org.zeroturnaround.zip.extra.ZipLong
-
Create instance from bytes.
- ZipLong(byte[], int) - Constructor for class org.zeroturnaround.zip.extra.ZipLong
-
Create instance from the four bytes starting at offset.
- ZipLong(long) - Constructor for class org.zeroturnaround.zip.extra.ZipLong
-
Create instance from a number.
- Zips - Class in org.zeroturnaround.zip
-
Fluent api for zip handling.
- Zips(File) - Constructor for class org.zeroturnaround.zip.Zips
- Zips.CopyingCallback - Class in org.zeroturnaround.zip
- Zips.UnpackingCallback - Class in org.zeroturnaround.zip
- ZipShort - Class in org.zeroturnaround.zip.extra
-
This is a class that has been made significantly smaller (deleted a bunch of methods) and originally is from the Apache Ant Project (http://ant.apache.org), org.apache.tools.zip package.
- ZipShort(byte[]) - Constructor for class org.zeroturnaround.zip.extra.ZipShort
-
Create instance from bytes.
- ZipShort(byte[], int) - Constructor for class org.zeroturnaround.zip.extra.ZipShort
-
Create instance from the two bytes starting at offset.
- ZipShort(int) - Constructor for class org.zeroturnaround.zip.extra.ZipShort
-
Create instance from a number.
- ZipUtil - Class in org.zeroturnaround.zip
-
ZIP file manipulation utilities.
- ZipUtil() - Constructor for class org.zeroturnaround.zip.ZipUtil
- ZipUtil.BackslashUnpacker - Class in org.zeroturnaround.zip
-
Unpacks each ZIP entries.
- ZipUtil.ByteArrayUnpacker - Class in org.zeroturnaround.zip
-
Copies an entry into a byte array.
- ZipUtil.FileUnpacker - Class in org.zeroturnaround.zip
-
Copies an entry into a File.
- ZipUtil.InPlaceAction - Class in org.zeroturnaround.zip
-
Simple helper to make inplace operation easier
- ZipUtil.RepackZipEntryCallback - Class in org.zeroturnaround.zip
-
RepackZipEntryCallback used in repacking methods.
- ZipUtil.SingleZipEntryCallback - Class in org.zeroturnaround.zip
-
ZipEntryCallback which is only applied to single entry.
- ZipUtil.TransformerZipEntryCallback - Class in org.zeroturnaround.zip
- ZipUtil.Unpacker - Class in org.zeroturnaround.zip
-
Unpacks each ZIP entry.
- ZipUtil.Unwrapper - Class in org.zeroturnaround.zip
-
Unwraps entries excluding a single parent dir.
- ZTFilePermissions - Class in org.zeroturnaround.zip
-
This class holds POSIX file permissions.
- ZTFilePermissions() - Constructor for class org.zeroturnaround.zip.ZTFilePermissions
- ZTFilePermissionsStrategy - Interface in org.zeroturnaround.zip
-
Maps
ZTFilePermissions
to real filesystem-specific file attributes. - ZTFilePermissionsUtil - Class in org.zeroturnaround.zip
-
Utilities to manipulate
ZTFilePermissions
. - ZTFilePermissionsUtil() - Constructor for class org.zeroturnaround.zip.ZTFilePermissionsUtil
- ZTFileUtil - Class in org.zeroturnaround.zip
- ZTFileUtil() - Constructor for class org.zeroturnaround.zip.ZTFileUtil
- ZTZipReflectionUtil - Class in org.zeroturnaround.zip
- ZTZipReflectionUtil() - Constructor for class org.zeroturnaround.zip.ZTZipReflectionUtil
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form