A B C D E F G H I K L M N O P R S T U V W Z
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(T) - Method in interface com.android.tools.build.apkzlib.utils.IOExceptionConsumer
-
Performs an operation on the given input.
- add(String, ByteSource, boolean) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Adds a file to the archive.
- add(String, InputStream) - Method in class com.android.tools.build.apkzlib.zip.ZFile
- add(String, InputStream, boolean) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Adds a file to the archive.
- addAllRecursively(File) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Adds all files and directories recursively.
- addAllRecursively(File, Predicate<? super File>) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Adds all files and directories recursively.
- added(StoredEntry, StoredEntry) - Method in class com.android.tools.build.apkzlib.zip.ZFileExtension
-
A new entry has been added to the zip, possibly replacing an entry in there.
- addToSigningBlock(byte[], byte[], int) - Static method in class com.android.tools.build.apkzlib.utils.SigningBlockUtils
-
Generates a new block with the given block value and block id, and appends it to the signing block.
- addZFileExtension(ZFileExtension) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Adds an extension to this zip file.
- alignment(String) - Method in interface com.android.tools.build.apkzlib.zip.AlignmentRule
-
Obtains the alignment this rule computes for a given path.
- AlignmentRule - Interface in com.android.tools.build.apkzlib.zip
-
An alignment rule defines how to a file should be aligned in a zip, based on its name.
- AlignmentRules - Class in com.android.tools.build.apkzlib.zip
-
Factory for instances of
AlignmentRule. - AlignmentSegment(int, byte[]) - Constructor for class com.android.tools.build.apkzlib.zip.ExtraField.AlignmentSegment
-
Creates a new alignment segment from extra data.
- AlignmentSegment(int, int) - Constructor for class com.android.tools.build.apkzlib.zip.ExtraField.AlignmentSegment
-
Creates a new alignment segment.
- ALWAYS_VALIDATE - com.android.tools.build.apkzlib.sign.SigningOptions.Validation
-
Always perform signature validation
- API_SHA_256_ALL_ALGORITHMS - Static variable in enum com.android.tools.build.apkzlib.sign.DigestAlgorithm
-
API level which supports
DigestAlgorithm.SHA256for allSignatureAlgorithms. - API_SHA_256_RSA_AND_ECDSA - Static variable in enum com.android.tools.build.apkzlib.sign.DigestAlgorithm
-
API level which supports
DigestAlgorithm.SHA256withSignatureAlgorithm.RSAandSignatureAlgorithm.ECDSA. - apk(File, ZFileOptions) - Static method in class com.android.tools.build.apkzlib.zfile.ZFiles
-
Creates a new zip file configured as an apk, based on a given file.
- apk(File, ZFileOptions, Optional<SigningOptions>, String, String) - Static method in class com.android.tools.build.apkzlib.zfile.ZFiles
-
Creates a new zip file configured as an apk, based on a given file.
- apk(File, ZFileOptions, Optional<SigningOptions>, String, String, boolean) - Static method in class com.android.tools.build.apkzlib.zfile.ZFiles
-
Deprecated.
- ApkCreator - Interface in com.android.tools.build.apkzlib.zfile
-
Creates or updates APKs based on provided entries.
- ApkCreatorFactory - Interface in com.android.tools.build.apkzlib.zfile
-
Factory that creates instances of
ApkCreator. - ApkCreatorFactory.CreationData - Class in com.android.tools.build.apkzlib.zfile
-
Data structure with the required information to initiate the creation of an APK.
- ApkCreatorFactory.CreationData.Builder - Class in com.android.tools.build.apkzlib.zfile
-
An implementation of builder pattern to create a
ApkCreatorFactory.CreationDataobject. - ApkZFileCreatorFactory - Class in com.android.tools.build.apkzlib.zfile
-
Creates instances of
ApkZFileCreator. - ApkZFileCreatorFactory(ZFileOptions) - Constructor for class com.android.tools.build.apkzlib.zfile.ApkZFileCreatorFactory
-
Creates a new factory.
- ApkZLibPair<T1,T2> - Class in com.android.tools.build.apkzlib.utils
-
Pair implementation to use with the
apkzliblibrary. - ApkZLibPair(T1, T2) - Constructor for class com.android.tools.build.apkzlib.utils.ApkZLibPair
-
Creates a new pair.
- apply(F) - Method in interface com.android.tools.build.apkzlib.utils.IOExceptionFunction
-
Applies the function to the given input.
- areTimestampsIgnored() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains whether this
ZFileis ignoring timestamps. - asCharSource(Charset) - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- asCharSource(Charset) - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
- asDataSource() - Method in class com.android.tools.build.apkzlib.zip.ZFile
- asDataSource(long, long) - Method in class com.android.tools.build.apkzlib.zip.ZFile
- asFunction(IOExceptionFunction<F, T>) - Static method in interface com.android.tools.build.apkzlib.utils.IOExceptionFunction
-
Wraps a function that may throw an IO Exception throwing an
IOExceptionWrapper. - asRunnable(IOExceptionRunnable) - Static method in interface com.android.tools.build.apkzlib.utils.IOExceptionRunnable
-
Wraps a runnable that may throw an IO Exception throwing an
UncheckedIOException. - ASSUME_INVALID - com.android.tools.build.apkzlib.sign.SigningOptions.Validation
-
Assume the signature is invalid without validation i.e.
- ASSUME_VALID - com.android.tools.build.apkzlib.sign.SigningOptions.Validation
-
Assume the signature is valid without validation i.e.
B
- beforeUpdate() - Method in class com.android.tools.build.apkzlib.zip.ZFileExtension
-
The zip will be updated.
- BestAndDefaultDeflateExecutorCompressor - Class in com.android.tools.build.apkzlib.zip.compress
-
Compressor that tries both the best and default compression algorithms and picks the default unless the best is at least a given percentage smaller.
- BestAndDefaultDeflateExecutorCompressor(Executor, double) - Constructor for class com.android.tools.build.apkzlib.zip.compress.BestAndDefaultDeflateExecutorCompressor
-
Creates a new compressor.
- BestAndDefaultDeflateExecutorCompressor(Executor, ByteTracker, double) - Constructor for class com.android.tools.build.apkzlib.zip.compress.BestAndDefaultDeflateExecutorCompressor
-
Deprecated.
- build() - Method in class com.android.tools.build.apkzlib.bytestorage.CloseableByteSourceFromOutputStreamBuilder
-
Creates the source from the data that has been written to the stream.
- build() - Method in class com.android.tools.build.apkzlib.sign.SigningOptions.Builder
- build() - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData.Builder
- builder() - Static method in class com.android.tools.build.apkzlib.sign.SigningOptions
- builder() - Static method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
- Builder() - Constructor for class com.android.tools.build.apkzlib.sign.SigningOptions.Builder
- Builder() - Constructor for class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData.Builder
- BUILT_BY - Static variable in interface com.android.tools.build.apkzlib.zfile.ManifestAttributes
-
Manifest attribute with the built by information.
- ByteStorage - Interface in com.android.tools.build.apkzlib.bytestorage
-
Interface for a storage that will temporarily save bytes.
- ByteStorageFactory - Interface in com.android.tools.build.apkzlib.bytestorage
-
Factory that creates
ByteStorage. - ByteTracker - Class in com.android.tools.build.apkzlib.zip.utils
-
Deprecated.will be removed shortly.
- ByteTracker() - Constructor for class com.android.tools.build.apkzlib.zip.utils.ByteTracker
-
Deprecated.
C
- CachedFileContents<T> - Class in com.android.tools.build.apkzlib.utils
-
A cache for file contents.
- CachedFileContents(File) - Constructor for class com.android.tools.build.apkzlib.utils.CachedFileContents
-
Creates a new contents.
- CachedSupplier<T> - Class in com.android.tools.build.apkzlib.utils
-
Supplier that will cache a computed value and always supply the same value.
- CachedSupplier(Supplier<T>) - Constructor for class com.android.tools.build.apkzlib.utils.CachedSupplier
-
Creates a new supplier.
- canAsciiEncode(String) - Static method in class com.android.tools.build.apkzlib.zip.EncodeUtils
-
Checks if some text may be encoded using ASCII.
- CentralDirectoryHeader - Class in com.android.tools.build.apkzlib.zip
-
The Central Directory Header contains information about files stored in the zip.
- CentralDirectoryHeaderCompressInfo - Class in com.android.tools.build.apkzlib.zip
-
Information stored in the
CentralDirectoryHeaderthat is related to compression and may need to be computed lazily. - CentralDirectoryHeaderCompressInfo(CentralDirectoryHeader, CompressionMethod, long) - Constructor for class com.android.tools.build.apkzlib.zip.CentralDirectoryHeaderCompressInfo
-
Creates new compression information for the central directory header.
- CentralDirectoryHeaderCompressInfo(CompressionMethod, long, long) - Constructor for class com.android.tools.build.apkzlib.zip.CentralDirectoryHeaderCompressInfo
-
Creates new compression information for the central directory header.
- ChunkBasedByteStorage - Class in com.android.tools.build.apkzlib.bytestorage
-
Byte storage that breaks byte sources into smaller byte sources.
- ChunkBasedByteStorageFactory - Class in com.android.tools.build.apkzlib.bytestorage
-
ByteStorageFactorythat createsByteStorageinstances that keep all data in memory. - ChunkBasedByteStorageFactory(ByteStorageFactory) - Constructor for class com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorageFactory
-
Creates a new factory whose storages are created using delegates from the given factory.
- ChunkBasedByteStorageFactory(ByteStorageFactory, Long) - Constructor for class com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorageFactory
-
Creates a new factory whose storages use the given maximum chunk size and are created using delegates from the given factory.
- clone() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
- close() - Method in class com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorage
- close() - Method in class com.android.tools.build.apkzlib.bytestorage.InMemoryByteStorage
- close() - Method in class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage
- close() - Method in class com.android.tools.build.apkzlib.bytestorage.TemporaryDirectoryStorage
- close() - Method in class com.android.tools.build.apkzlib.bytestorage.TemporaryFile
- close() - Method in class com.android.tools.build.apkzlib.zip.ProcessedAndRawByteSources
- close() - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableByteSource
- close() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Updates the file and closes it.
- CloseableByteSource - Class in com.android.tools.build.apkzlib.zip.utils
-
Byte source that can be closed.
- CloseableByteSource() - Constructor for class com.android.tools.build.apkzlib.zip.utils.CloseableByteSource
-
Creates a new byte source.
- CloseableByteSourceFromOutputStreamBuilder - Class in com.android.tools.build.apkzlib.bytestorage
-
Output stream that creates a
CloseableByteSourcefrom the data that was written to it. - CloseableByteSourceFromOutputStreamBuilder() - Constructor for class com.android.tools.build.apkzlib.bytestorage.CloseableByteSourceFromOutputStreamBuilder
- CloseableDelegateByteSource - Class in com.android.tools.build.apkzlib.zip.utils
-
Closeable byte source that delegates to another byte source.
- CloseableDelegateByteSource(ByteSource, long) - Constructor for class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
-
Creates a new byte source.
- closed() - Method in class com.android.tools.build.apkzlib.zip.ZFileExtension
-
The zip file has been closed.
- closed(T) - Method in class com.android.tools.build.apkzlib.utils.CachedFileContents
-
Should be called when the file's contents are set and the file closed.
- com.android.tools.build.apkzlib.bytestorage - package com.android.tools.build.apkzlib.bytestorage
- com.android.tools.build.apkzlib.sign - package com.android.tools.build.apkzlib.sign
- com.android.tools.build.apkzlib.utils - package com.android.tools.build.apkzlib.utils
-
Utilities to work with
apkzlib. - com.android.tools.build.apkzlib.zfile - package com.android.tools.build.apkzlib.zfile
-
The
zfilepackage contains - com.android.tools.build.apkzlib.zip - package com.android.tools.build.apkzlib.zip
- com.android.tools.build.apkzlib.zip.compress - package com.android.tools.build.apkzlib.zip.compress
-
Compressors to use with the
zippackage. - com.android.tools.build.apkzlib.zip.utils - package com.android.tools.build.apkzlib.zip.utils
- compose(AlignmentRule...) - Static method in class com.android.tools.build.apkzlib.zip.AlignmentRules
-
A rule that applies other rules in order.
- compress(CloseableByteSource, ByteStorage) - Method in class com.android.tools.build.apkzlib.zip.compress.ExecutorCompressor
- compress(CloseableByteSource, ByteStorage) - Method in interface com.android.tools.build.apkzlib.zip.Compressor
-
Compresses an entry source.
- COMPRESSED - com.android.tools.build.apkzlib.zfile.NativeLibrariesPackagingMode
-
Native libs are packaged as any other file.
- CompressionMethod - Enum in com.android.tools.build.apkzlib.zip
-
Enumeration with all known compression methods.
- CompressionResult - Class in com.android.tools.build.apkzlib.zip
-
Result of compressing data.
- CompressionResult(CloseableByteSource, CompressionMethod, long) - Constructor for class com.android.tools.build.apkzlib.zip.CompressionResult
-
Creates a new compression result.
- Compressor - Interface in com.android.tools.build.apkzlib.zip
-
A compressor is capable of, well, compressing data.
- constant(int) - Static method in class com.android.tools.build.apkzlib.zip.AlignmentRules
-
A rule that defines a constant alignment for all files.
- constantForSuffix(String, int) - Static method in class com.android.tools.build.apkzlib.zip.AlignmentRules
-
A rule that defines constant alignment for all files with a certain suffix, placing no restrictions on other files.
- contentEquals(ByteSource) - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- contentEquals(ByteSource) - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
- copyTo(ByteSink) - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- copyTo(ByteSink) - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
- copyTo(OutputStream) - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- copyTo(OutputStream) - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
- create() - Method in interface com.android.tools.build.apkzlib.bytestorage.ByteStorageFactory
-
Creates a new storage.
- create() - Method in class com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorageFactory
- create() - Method in class com.android.tools.build.apkzlib.bytestorage.InMemoryByteStorageFactory
- create() - Method in class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorageFactory
- CREATED_BY - Static variable in interface com.android.tools.build.apkzlib.zfile.ManifestAttributes
-
Manifest attribute with the created by information.
- CreationData() - Constructor for class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
- CURRENT_MANIFEST_VERSION - Static variable in interface com.android.tools.build.apkzlib.zfile.ManifestAttributes
-
Manifest attribute value with the manifest version.
D
- DATA_DESCRIPTOR_WITH_SIGNATURE - com.android.tools.build.apkzlib.zip.DataDescriptorType
-
The entry has a data descriptor that contains a signature.
- DATA_DESCRIPTOR_WITHOUT_SIGNATURE - com.android.tools.build.apkzlib.zip.DataDescriptorType
-
The entry has a data descriptor that does not contain a signature.
- DataDescriptorType - Enum in com.android.tools.build.apkzlib.zip
-
Type of data descriptor that an entry has.
- decode(byte[], GPFlags) - Static method in class com.android.tools.build.apkzlib.zip.EncodeUtils
-
Decodes a file name.
- decode(ByteBuffer, int, GPFlags) - Static method in class com.android.tools.build.apkzlib.zip.EncodeUtils
-
Decodes a file name.
- DEFLATE - com.android.tools.build.apkzlib.zip.CompressionMethod
-
DEFLATE method: data is stored compressed using the DEFLATE algorithm.
- DeflateExecutionCompressor - Class in com.android.tools.build.apkzlib.zip.compress
-
Compressor that uses deflate with an executor.
- DeflateExecutionCompressor(Executor, int) - Constructor for class com.android.tools.build.apkzlib.zip.compress.DeflateExecutionCompressor
-
Creates a new compressor.
- DeflateExecutionCompressor(Executor, ByteTracker, int) - Constructor for class com.android.tools.build.apkzlib.zip.compress.DeflateExecutionCompressor
-
Deprecated.
- delete() - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Deletes this entry from the zip file.
- deleteFile(String) - Method in interface com.android.tools.build.apkzlib.zfile.ApkCreator
-
Deletes a file in a given path.
- DigestAlgorithm - Enum in com.android.tools.build.apkzlib.sign
-
Message digest algorithms.
- directFullyRead(long, byte[]) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Reads exactly
data.lengthbytes of data, failing if it was not possible to read all the requested data. - directFullyRead(long, ByteBuffer) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Reads exactly
dest.remaining()bytes of data, failing if it was not possible to read all the requested data. - directOpen(long, long) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Opens a portion of the zip for reading.
- DIRECTORY - com.android.tools.build.apkzlib.zip.StoredEntryType
-
Entry is a directory.
- directRead(long, byte[]) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Same as
directRead(offset, data, 0, data.length). - directRead(long, byte[], int, int) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Directly reads data from the zip file.
- directRead(long, ByteBuffer) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Directly reads data from the zip file.
- directSize() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Returns the current size (in bytes) of the underlying file.
- directWrite(long, byte[]) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Same as
directWrite(offset, data, 0, data.length). - directWrite(long, byte[], int, int) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Directly writes data in the zip file.
- DSA - com.android.tools.build.apkzlib.sign.SignatureAlgorithm
-
DSA algorithm.
E
- ECDSA - com.android.tools.build.apkzlib.sign.SignatureAlgorithm
-
ECDSA algorithm.
- EMPTY - Static variable in class com.android.tools.build.apkzlib.zip.ExtraField
- encode(String, GPFlags) - Static method in class com.android.tools.build.apkzlib.zip.EncodeUtils
-
Encodes a file name.
- EncodeUtils - Class in com.android.tools.build.apkzlib.zip
-
Utilities to encode and decode file names in zips.
- entries() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains all entries in the file.
- entriesWritten() - Method in class com.android.tools.build.apkzlib.zip.ZFileExtension
-
This notification is sent when all entries have been written in the file but the central directory and the EOCD have not yet been written.
- entryAttributeName - Variable in enum com.android.tools.build.apkzlib.sign.DigestAlgorithm
-
Name of attribute in entry (both manifest and signature file) with the entry's digest.
- EocdGroup - Class in com.android.tools.build.apkzlib.zip
-
The collection of all data stored in all End of Central Directory records in the zip file.
- ExecutorCompressor - Class in com.android.tools.build.apkzlib.zip.compress
-
A synchronous compressor is a compressor that computes the result of compression immediately and never returns an uncomputed future object.
- ExecutorCompressor(Executor) - Constructor for class com.android.tools.build.apkzlib.zip.compress.ExecutorCompressor
-
Compressor that delegates execution into the given executor.
- extractBlock(File, int) - Static method in class com.android.tools.build.apkzlib.utils.SigningBlockUtils
-
Extract a block with the given id from the APK.
- ExtraField - Class in com.android.tools.build.apkzlib.zip
-
Contains an extra field.
- ExtraField() - Constructor for class com.android.tools.build.apkzlib.zip.ExtraField
-
Creates a new extra field with no segments.
- ExtraField(byte[]) - Constructor for class com.android.tools.build.apkzlib.zip.ExtraField
-
Creates an extra field based on existing raw data.
- ExtraField(ImmutableList<ExtraField.Segment>) - Constructor for class com.android.tools.build.apkzlib.zip.ExtraField
-
Creates a new extra field with the given segments.
- ExtraField.AlignmentSegment - Class in com.android.tools.build.apkzlib.zip
-
Segment with information on an alignment: this segment contains information on how an entry should be aligned and contains zero-filled data to force alignment.
- ExtraField.RawDataSegment - Class in com.android.tools.build.apkzlib.zip
-
Segment of raw data: this class represents a general segment containing an array of bytes as data.
- ExtraField.Segment - Interface in com.android.tools.build.apkzlib.zip
-
Field inside the extra field.
F
- FILE - com.android.tools.build.apkzlib.zip.StoredEntryType
-
Entry is a file.
- finishAllBackgroundTasks() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Wait for any background tasks to finish and report any errors.
- fixed(File) - Static method in interface com.android.tools.build.apkzlib.bytestorage.TemporaryDirectory
-
Creates a new temporary directory that uses a fixed directory.
- fixed(File) - Static method in interface com.android.tools.build.apkzlib.bytestorage.TemporaryDirectoryFactory
-
Obtains a factory that creates temporary directories using
TemporaryDirectory.fixed(File). - fromKeyAlgorithm(String, int) - Static method in enum com.android.tools.build.apkzlib.sign.SignatureAlgorithm
-
Obtains the signature algorithm that corresponds to a private key name applicable to a SDK version.
- fromSource(ByteSource) - Method in interface com.android.tools.build.apkzlib.bytestorage.ByteStorage
-
Creates a new byte source from another byte source.
- fromSource(ByteSource) - Method in class com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorage
- fromSource(ByteSource) - Method in class com.android.tools.build.apkzlib.bytestorage.InMemoryByteStorage
- fromSource(ByteSource) - Method in class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage
- fromSource(ByteSource) - Method in class com.android.tools.build.apkzlib.bytestorage.TemporaryDirectoryStorage
- fromStream(InputStream) - Method in interface com.android.tools.build.apkzlib.bytestorage.ByteStorage
-
Creates a new byte source by fully reading an input stream.
- fromStream(InputStream) - Method in class com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorage
- fromStream(InputStream) - Method in class com.android.tools.build.apkzlib.bytestorage.InMemoryByteStorage
- fromStream(InputStream) - Method in class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage
- fromStream(InputStream) - Method in class com.android.tools.build.apkzlib.bytestorage.TemporaryDirectoryStorage
- fullyRead(RandomAccessFile, byte[]) - Static method in class com.android.tools.build.apkzlib.zip.utils.RandomAccessFileUtils
-
Reads from an random access file until the provided array is filled.
G
- get() - Method in class com.android.tools.build.apkzlib.utils.CachedSupplier
-
Obtains the value.
- get(String) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains an entry at a given path in the zip.
- getAlignmentRule() - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Obtains the alignment rule.
- getApkPath() - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
-
Obtains the path where the APK should be located.
- getAutoSortFiles() - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Obtains whether files should be automatically sorted before updating the zip file.
- getBuiltBy() - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
-
Obtains the "built-by" text for the APK.
- getBytesUsed() - Method in interface com.android.tools.build.apkzlib.bytestorage.ByteStorage
-
Obtains the number of bytes currently used.
- getBytesUsed() - Method in class com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorage
- getBytesUsed() - Method in class com.android.tools.build.apkzlib.bytestorage.InMemoryByteStorage
- getBytesUsed() - Method in class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage
- getBytesUsed() - Method in class com.android.tools.build.apkzlib.bytestorage.TemporaryDirectoryStorage
- getCache() - Method in class com.android.tools.build.apkzlib.utils.CachedFileContents
-
Obtains the cached data set with
CachedFileContents.closed(Object)if the file has not been modified sinceCachedFileContents.closed(Object)was invoked. - getCause() - Method in exception com.android.tools.build.apkzlib.utils.IOExceptionWrapper
- getCentralDirectoryBytes() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains the byte array representation of the central directory.
- getCentralDirectoryHeader() - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Obtains the CDH associated with this entry.
- getCentralDirectoryOffset() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains the offset at which the central directory exists, or at which it will be written if the zip file were to be flushed immediately.
- getCentralDirectorySize() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains the size of the central directory, if the central directory is written in the zip file.
- getCertificates() - Method in class com.android.tools.build.apkzlib.sign.SigningOptions
-
A list of the
X509Certificates to embed in the signed APKs. - getComment() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the entry's comment.
- getCompressedSize() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeaderCompressInfo
-
Obtains the compression data size.
- getCompressionInfo() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the future with the compression information.
- getCompressionInfoWithWait() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Equivalent to
getCompressionInfo().get()but masking the possible exceptions and guaranteeing non-nullreturn. - getCompressionMethod() - Method in class com.android.tools.build.apkzlib.zip.CompressionResult
-
Obtains the compression method.
- getCompressor() - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Obtains the compressor to use.
- getCoverEmptySpaceUsingExtraField() - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Obtains whether the extra field should be used to cover empty spaces.
- getCrc32() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the CRC32 of the data.
- getCreatedBy() - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
-
Obtains the "created-by" text for the APK.
- getDataDescriptorType() - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Obtains the type of data descriptor used in the entry.
- getDelegate() - Method in class com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorage
-
Obtains the byte storage chunks are allocated from.
- getDelegate() - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
-
Obtains the delegate future.
- getDirectory() - Method in interface com.android.tools.build.apkzlib.bytestorage.TemporaryDirectory
-
Obtains the directory, only useful for tests.
- getDirectoryOffset() - Method in class com.android.tools.build.apkzlib.zip.Zip64Eocd
- getDirectorySize() - Method in class com.android.tools.build.apkzlib.zip.Zip64Eocd
- getDiskBytesUsed() - Method in class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage
-
Obtains the number of bytes stored in disk.
- getEncodedFileName() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the encoded file name.
- getEocdBytes() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains the byte array representation of the EOCD.
- getEocdComment() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains the comment in the EOCD.
- getEocdOffset() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains the offset of the EOCD record, if the EOCD has been written to the file.
- getEocdSize() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains the size of the EOCD record, if the EOCD has been written to the file.
- getExecutor() - Method in class com.android.tools.build.apkzlib.sign.SigningOptions
- getExtensibleData() - Method in class com.android.tools.build.apkzlib.zip.EocdGroup
-
Returns the Zip64 Extensible Data Sector, or
nullif the EOCD record is not in the Zip64 format. - getExternalAttributes() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the entry's external attributes.
- getExtraDirectoryOffset() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains the extra offset for the central directory.
- getExtraField() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the data in the extra field.
- getExtraFields() - Method in class com.android.tools.build.apkzlib.zip.Zip64Eocd
- getFields() - Method in class com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector
- getFile() - Method in class com.android.tools.build.apkzlib.bytestorage.TemporaryFile
-
Obtains the file or directory this temporary file refers to.
- getFile() - Method in class com.android.tools.build.apkzlib.utils.CachedFileContents
-
Obtains the file used for caching.
- getFile() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains the filesystem path to the zip file.
- getGpBit() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the general-purpose bit flag.
- getHeaderId() - Method in class com.android.tools.build.apkzlib.zip.ExtraField.AlignmentSegment
- getHeaderId() - Method in class com.android.tools.build.apkzlib.zip.ExtraField.RawDataSegment
- getHeaderId() - Method in interface com.android.tools.build.apkzlib.zip.ExtraField.Segment
-
Obtains the segment's header ID.
- getHeaderId() - Method in class com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector.RawSpecialPurposeData
- getHeaderId() - Method in interface com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector.Z64SpecialPurposeData
-
Obtains the Special purpose data's header id.
- getInternalAttributes() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the entry's internal attributes.
- getKey() - Method in class com.android.tools.build.apkzlib.sign.SigningOptions
-
PrivateKeyused to sign the archive. - getLastModDate() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the last modification date of the entry.
- getLastModTime() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the last modification time of the entry.
- getLocalExtra() - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Obtains the contents of the local extra field.
- getLocalHeaderSize() - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Obtains the size of the local header of this entry.
- getLogs() - Method in interface com.android.tools.build.apkzlib.zip.VerifyLog
-
Obtains all save logged messages.
- getMadeBy() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the code of the program that made the zip.
- getMaxBytesUsed() - Method in interface com.android.tools.build.apkzlib.bytestorage.ByteStorage
-
Obtains the maximum number of bytes ever used by this tracker.
- getMaxBytesUsed() - Method in class com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorage
- getMaxBytesUsed() - Method in class com.android.tools.build.apkzlib.bytestorage.InMemoryByteStorage
- getMaxBytesUsed() - Method in class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage
- getMaxBytesUsed() - Method in class com.android.tools.build.apkzlib.bytestorage.TemporaryDirectoryStorage
- getMaxDiskBytesUsed() - Method in class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage
-
Obtains the maximum number of bytes ever stored in disk.
- getMaxMemoryBytesUsed() - Method in class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage
-
Obtains the maximum number of bytes ever stored in memory.
- getMemoryBytesUsed() - Method in class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage
-
Obtains the number of bytes stored in memory.
- getMethod() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeaderCompressInfo
-
Obtains the compression method.
- getMinSdkVersion() - Method in class com.android.tools.build.apkzlib.sign.SigningOptions
-
Minimum SDK version supported.
- getName() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the name of the file.
- getNativeLibrariesPackagingMode() - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
-
Returns the packaging policy that the
ApkCreatorshould use for native libraries. - getNoCompressPredicate() - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
-
Returns the predicate to decide which file paths should be uncompressed.
- getNoTimestamps() - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Obtains whether timestamps should be zeroed.
- getOffset() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the offset in the zip file where this entry's data is.
- getProcessedByteSource() - Method in class com.android.tools.build.apkzlib.zip.ProcessedAndRawByteSources
-
Obtains a byte source that read the processed contents of the entry.
- getRawByteSource() - Method in class com.android.tools.build.apkzlib.zip.ProcessedAndRawByteSources
-
Obtains a byte source that reads the raw contents of an entry.
- getRecordSize() - Method in class com.android.tools.build.apkzlib.zip.EocdGroup
-
Returns the total size of the EOCD record.
- getSdkDependencyData() - Method in class com.android.tools.build.apkzlib.sign.SigningOptions
-
SDK dependencies of the APK
- getSegments() - Method in class com.android.tools.build.apkzlib.zip.ExtraField
-
Obtains all segments in the extra field.
- getSigningOptions() - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
-
Obtains the data used to sign the APK.
- getSingleSegment(int) - Method in class com.android.tools.build.apkzlib.zip.ExtraField
-
Obtains the only segment with the provided header ID.
- getSize() - Method in class com.android.tools.build.apkzlib.zip.CompressionResult
-
Obtains the size of the compression result.
- getSkipValidation() - Method in class com.android.tools.build.apkzlib.zip.ZFile
- getSkipValidation() - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Gets whether expensive validation should be performed during
ZFilecreation - getSource() - Method in class com.android.tools.build.apkzlib.zip.CompressionResult
-
Obtains the compressed data.
- getStorage() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Obtains the storage used by the zip to store data.
- getStorageFactory() - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Obtains the ZFile's byte storage factory.
- getTotalRecords() - Method in class com.android.tools.build.apkzlib.zip.Zip64Eocd
- getTracker() - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Deprecated.
- getType() - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Obtains the type of entry.
- getUncompressedSize() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Obtains the size of the uncompressed file.
- getValidation() - Method in class com.android.tools.build.apkzlib.sign.SigningOptions
-
Strategy of package signature validation
- getVerifyLog() - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Obtains the verify log for the entry.
- getVerifyLogFactory() - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Obtains the verification log factory.
- getVersionToExtract() - Method in class com.android.tools.build.apkzlib.zip.Zip64Eocd
H
- hash(HashFunction) - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- hash(HashFunction) - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
- hasPendingChangesWithWait() - Method in interface com.android.tools.build.apkzlib.zfile.ApkCreator
-
Returns true if the APK will be rewritten on close.
- hasPendingChangesWithWait() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Are there in-memory changes that have not been written to the zip file?
I
- immediateCompress(CloseableByteSource, ByteStorage) - Method in class com.android.tools.build.apkzlib.zip.compress.BestAndDefaultDeflateExecutorCompressor
- immediateCompress(CloseableByteSource, ByteStorage) - Method in class com.android.tools.build.apkzlib.zip.compress.DeflateExecutionCompressor
- immediateCompress(CloseableByteSource, ByteStorage) - Method in class com.android.tools.build.apkzlib.zip.compress.ExecutorCompressor
-
Immediately compresses a source.
- InflaterByteSource - Class in com.android.tools.build.apkzlib.zip
-
Byte source that inflates another byte source.
- InflaterByteSource(CloseableByteSource) - Constructor for class com.android.tools.build.apkzlib.zip.InflaterByteSource
-
Creates a new source.
- InMemoryByteStorage - Class in com.android.tools.build.apkzlib.bytestorage
-
Keeps track of used bytes allowing gauging memory usage.
- InMemoryByteStorage() - Constructor for class com.android.tools.build.apkzlib.bytestorage.InMemoryByteStorage
- InMemoryByteStorageFactory - Class in com.android.tools.build.apkzlib.bytestorage
-
ByteStorageFactorythat createsByteStorageinstances that keep all data in memory. - InMemoryByteStorageFactory() - Constructor for class com.android.tools.build.apkzlib.bytestorage.InMemoryByteStorageFactory
- innerClose() - Method in class com.android.tools.build.apkzlib.zip.InflaterByteSource
- innerClose() - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- innerClose() - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableByteSource
-
Closes the by source.
- innerClose() - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
-
Mark the byte source as disposed.
- IOExceptionConsumer<T> - Interface in com.android.tools.build.apkzlib.utils
-
Consumer that can throw an
IOException. - IOExceptionFunction<F,T> - Interface in com.android.tools.build.apkzlib.utils
-
Function that can throw an I/O Exception
- IOExceptionRunnable - Interface in com.android.tools.build.apkzlib.utils
-
Runnable that can throw I/O exceptions.
- IOExceptionWrapper - Exception in com.android.tools.build.apkzlib.utils
-
Runtime exception used to encapsulate an IO Exception.
- IOExceptionWrapper(IOException) - Constructor for exception com.android.tools.build.apkzlib.utils.IOExceptionWrapper
-
Creates a new exception.
- isDeleted() - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Returns
trueif this entry has been deleted/replaced. - isEmpty() - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- isEmpty() - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
- isIncremental() - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
-
Returns if this apk build is incremental.
- isV1SigningEnabled() - Method in class com.android.tools.build.apkzlib.sign.SigningOptions
-
Shows whether signing with JAR Signature Scheme (aka v1 signing) is enabled.
- isV2SigningEnabled() - Method in class com.android.tools.build.apkzlib.sign.SigningOptions
-
Shows whether signing with APK Signature Scheme v2 (aka v2 signing) is enabled.
- isValid() - Method in class com.android.tools.build.apkzlib.utils.CachedFileContents
-
Are the cached contents still valid? If this method determines that the file has been modified since the last time
CachedFileContents.closed(Object)was invoked. - isValid() - Method in class com.android.tools.build.apkzlib.utils.CachedSupplier
-
Checks if the contents of the cache are valid.
K
- keyAlgorithm - Variable in enum com.android.tools.build.apkzlib.sign.SignatureAlgorithm
-
Name of the private key as reported by
PrivateKey.
L
- LazyDelegateByteSource - Class in com.android.tools.build.apkzlib.zip
-
ByteSourcethat delegates all operations to anotherByteSource. - LazyDelegateByteSource(ListenableFuture<CloseableByteSource>) - Constructor for class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
-
Creates a new byte source that delegates operations to the provided source.
- LittleEndianUtils - Class in com.android.tools.build.apkzlib.zip.utils
-
Utilities to read and write 16, 32, and 64 bit integers with support for little-endian encoding, as used in zip files.
- log(String) - Method in interface com.android.tools.build.apkzlib.zip.VerifyLog
-
Logs a message.
M
- make() - Method in interface com.android.tools.build.apkzlib.bytestorage.TemporaryDirectoryFactory
-
Creates a new temporary directory.
- make(int, byte[]) - Method in interface com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector.SpecialPurposeDataFactory
-
Creates a new special purpose data.
- make(ApkCreatorFactory.CreationData) - Method in interface com.android.tools.build.apkzlib.zfile.ApkCreatorFactory
-
Creates an
ApkCreatorwith a given output location, and signing information. - make(ApkCreatorFactory.CreationData) - Method in class com.android.tools.build.apkzlib.zfile.ApkZFileCreatorFactory
- makeBuilder() - Method in interface com.android.tools.build.apkzlib.bytestorage.ByteStorage
-
Creates a builder that is an output stream and can create a byte source.
- makeBuilder() - Method in class com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorage
- makeBuilder() - Method in class com.android.tools.build.apkzlib.bytestorage.InMemoryByteStorage
- makeBuilder() - Method in class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage
- makeBuilder() - Method in class com.android.tools.build.apkzlib.bytestorage.TemporaryDirectoryStorage
- MANIFEST_VERSION - Static variable in interface com.android.tools.build.apkzlib.zfile.ManifestAttributes
-
Manifest attribute with the manifest version.
- manifestAttributeName - Variable in enum com.android.tools.build.apkzlib.sign.DigestAlgorithm
-
Name of attribute in signature file with the manifest digest.
- ManifestAttributes - Interface in com.android.tools.build.apkzlib.zfile
-
Java manifest attributes and some default values.
- ManifestGenerationExtension - Class in com.android.tools.build.apkzlib.sign
-
Extension to
ZFilethat will generate a manifest. - ManifestGenerationExtension(String, String) - Constructor for class com.android.tools.build.apkzlib.sign.ManifestGenerationExtension
-
Creates a new extension.
- mergeFrom(ZFile, Predicate<String>) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Adds all files from another zip file, maintaining their compression.
- messageDigestName - Variable in enum com.android.tools.build.apkzlib.sign.DigestAlgorithm
-
Name of algorithm for message digest.
- MINIMUM_SIZE - Static variable in class com.android.tools.build.apkzlib.zip.ExtraField.AlignmentSegment
-
Minimum size for an alignment segment.
- minSdkVersion - Variable in enum com.android.tools.build.apkzlib.sign.SignatureAlgorithm
-
Minimum SDK version that allows this signature.
- MsDosDateTimeUtils - Class in com.android.tools.build.apkzlib.zip.utils
-
Yes.
N
- NativeLibrariesPackagingMode - Enum in com.android.tools.build.apkzlib.zfile
-
Describes how native libs should be packaged.
- newFile() - Method in interface com.android.tools.build.apkzlib.bytestorage.TemporaryDirectory
-
Creates a new file in the directory.
- newSystemTemporaryDirectory() - Static method in interface com.android.tools.build.apkzlib.bytestorage.TemporaryDirectory
-
Creates a new temporary directory in the system's temporary directory.
- NO_ALIGNMENT - Static variable in interface com.android.tools.build.apkzlib.zip.AlignmentRule
-
Alignment value of files that do not require alignment.
- NO_DATA_DESCRIPTOR - com.android.tools.build.apkzlib.zip.DataDescriptorType
-
The entry has no data descriptor.
O
- open() - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Obtains a stream that allows reading from the entry.
- open() - Method in class com.android.tools.build.apkzlib.zip.ZFileExtension
-
The zip file has been open and the zip's contents have been read.
- openBufferedStream() - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- openBufferedStream() - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
- openReadOnly() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Deprecated.use
ZFile.openReadOnlyIfClosed()if necessary to ensure aZFileis open and readable - openReadOnly(File) - Static method in class com.android.tools.build.apkzlib.zip.ZFile
-
Opens a new
ZFilefrom the given file in read-only mode. - openReadOnly(File, ZFileOptions) - Static method in class com.android.tools.build.apkzlib.zip.ZFile
-
Opens a new
ZFilefrom the given file in read-only mode. - openReadOnlyIfClosed() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
If the zip file is closed, opens it in read-only mode.
- openReadWrite(File) - Static method in class com.android.tools.build.apkzlib.zip.ZFile
-
Opens a new
ZFilefrom the given file in read-write mode. - openReadWrite(File, ZFileOptions) - Static method in class com.android.tools.build.apkzlib.zip.ZFile
-
Opens a new
ZFilefrom the given file in read-write mode. - openStream() - Method in class com.android.tools.build.apkzlib.zip.InflaterByteSource
- openStream() - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- openStream() - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
- OverflowToDiskByteStorage - Class in com.android.tools.build.apkzlib.bytestorage
-
Byte storage that keeps data in memory up to a certain size.
- OverflowToDiskByteStorage(long, TemporaryDirectoryFactory) - Constructor for class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage
-
Creates a new byte storage with the given memory cache size using the provided temporary directory to write data that overflows the memory size.
- OverflowToDiskByteStorage(TemporaryDirectoryFactory) - Constructor for class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorage
-
Creates a new byte storage with the default memory cache using the provided temporary directory to write data that overflows the memory size.
- OverflowToDiskByteStorageFactory - Class in com.android.tools.build.apkzlib.bytestorage
-
ByteStorageFactorythat creates instances ofByteStoragethat will keep some data in memory and will overflow to disk when necessary. - OverflowToDiskByteStorageFactory(TemporaryDirectoryFactory) - Constructor for class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorageFactory
-
Creates a new factory with an optional in-memory size and a temporary directory for overflow.
- OverflowToDiskByteStorageFactory(Long, TemporaryDirectoryFactory) - Constructor for class com.android.tools.build.apkzlib.bytestorage.OverflowToDiskByteStorageFactory
-
Creates a new factory with an optional in-memory size and a temporary directory for overflow.
P
- packCurrentDate() - Static method in class com.android.tools.build.apkzlib.zip.utils.MsDosDateTimeUtils
-
Packs the current time value into an MS-DOS date value.
- packCurrentTime() - Static method in class com.android.tools.build.apkzlib.zip.utils.MsDosDateTimeUtils
-
Packs the current time value into an MS-DOS time value.
- packDate(long) - Static method in class com.android.tools.build.apkzlib.zip.utils.MsDosDateTimeUtils
-
Packs java time value into an MS-DOS date value.
- packTime(long) - Static method in class com.android.tools.build.apkzlib.zip.utils.MsDosDateTimeUtils
-
Packs java time value into an MS-DOS time value.
- precomputed(T) - Method in class com.android.tools.build.apkzlib.utils.CachedSupplier
-
In some cases, we may be able to precompute the cache value (or load it from somewhere we had previously stored it).
- PREFIX_LENGTH - Static variable in interface com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector.Z64SpecialPurposeData
-
Length of header id and the size length fields that comes before the data
- ProcessedAndRawByteSources - Class in com.android.tools.build.apkzlib.zip
-
Container that has two bytes sources: one representing raw data and another processed data.
- ProcessedAndRawByteSources(CloseableByteSource, CloseableByteSource) - Constructor for class com.android.tools.build.apkzlib.zip.ProcessedAndRawByteSources
-
Creates a new container.
R
- RandomAccessFileUtils - Class in com.android.tools.build.apkzlib.zip.utils
-
Utility class with utility methods for random access files.
- read() - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- read() - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Obtains the contents of the file.
- read() - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
- read(byte[]) - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Obtains the contents of the file in an existing buffer.
- read(ByteProcessor<T>) - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- read(ByteProcessor<T>) - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
- readUnsigned2Le(ByteBuffer) - Static method in class com.android.tools.build.apkzlib.zip.utils.LittleEndianUtils
-
Reads 2 bytes in little-endian format and converts them into a 16-bit value.
- readUnsigned4Le(ByteBuffer) - Static method in class com.android.tools.build.apkzlib.zip.utils.LittleEndianUtils
-
Reads 4 bytes in little-endian format and converts them into a 32-bit value.
- readUnsigned8Le(ByteBuffer) - Static method in class com.android.tools.build.apkzlib.zip.utils.LittleEndianUtils
-
Reads 8 bytes in little-endian format and converts them into a 64-bit value.
- realign() - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Requests that this entry be realigned.
- realign() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Realigns all entries in the zip.
- register(ZFile) - Method in class com.android.tools.build.apkzlib.sign.ManifestGenerationExtension
-
Registers the extension with the
ZFileprovided in the constructor. - register(ZFile) - Method in class com.android.tools.build.apkzlib.sign.SigningExtension
- removed(StoredEntry) - Method in class com.android.tools.build.apkzlib.zip.ZFileExtension
-
An entry has been removed from the zip.
- removeZFileExtension(ZFileExtension) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Removes an extension from this zip file.
- reset() - Method in class com.android.tools.build.apkzlib.utils.CachedSupplier
-
Resets the cache forcing a
get()on the supplier next timeCachedSupplier.get()is invoked. - RSA - com.android.tools.build.apkzlib.sign.SignatureAlgorithm
-
RSA algorithm.
- run() - Method in interface com.android.tools.build.apkzlib.utils.IOExceptionRunnable
-
Runs the runnable.
S
- SEPARATOR - Static variable in class com.android.tools.build.apkzlib.zip.ZFile
-
The file separator in paths in the zip file.
- setAlignmentRule(AlignmentRule) - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Sets the alignment rule.
- setApkPath(File) - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData.Builder
- setAutoSortFiles(boolean) - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Sets whether files should be automatically sorted before updating the zip file.
- setBuiltBy(String) - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData.Builder
- setCertificates(ImmutableList<X509Certificate>) - Method in class com.android.tools.build.apkzlib.sign.SigningOptions.Builder
- setCertificates(X509Certificate...) - Method in class com.android.tools.build.apkzlib.sign.SigningOptions.Builder
- setCompressor(Compressor) - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Sets the compressor to use.
- setCoverEmptySpaceUsingExtraField(boolean) - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Sets whether the extra field should be used to cover empty spaces.
- setCreatedBy(String) - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData.Builder
- setEocdComment(byte[]) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Sets the comment in the EOCD.
- setExecutor(RunnablesExecutor) - Method in class com.android.tools.build.apkzlib.sign.SigningOptions.Builder
- setExtraDirectoryOffset(long) - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Sets an extra offset for the central directory.
- setExtraField(ExtraField) - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
-
Sets the data in the extra field.
- setIncremental(boolean) - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData.Builder
- setKey(PrivateKey) - Method in class com.android.tools.build.apkzlib.sign.SigningOptions.Builder
- setLocalExtra(ExtraField) - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
-
Sets the contents of the local extra field.
- setMinSdkVersion(int) - Method in class com.android.tools.build.apkzlib.sign.SigningOptions.Builder
- setNativeLibrariesPackagingMode(NativeLibrariesPackagingMode) - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData.Builder
- setNoCompressPredicate(Predicate<String>) - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData.Builder
- setNoTimestamps(boolean) - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Sets whether timestamps should be zeroed.
- setSdkDependencyData(byte[]) - Method in class com.android.tools.build.apkzlib.sign.SigningOptions.Builder
- setSigningOptions(SigningOptions) - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData.Builder
- setSkipValidation(boolean) - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Sets whether expensive validation should be skipped during
ZFilecreation - setStorageFactory(ByteStorageFactory) - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Sets the byte storage factory to use.
- setV1SigningEnabled(boolean) - Method in class com.android.tools.build.apkzlib.sign.SigningOptions.Builder
- setV2SigningEnabled(boolean) - Method in class com.android.tools.build.apkzlib.sign.SigningOptions.Builder
- setValidation(SigningOptions.Validation) - Method in class com.android.tools.build.apkzlib.sign.SigningOptions.Builder
- setVerifyLogFactory(Supplier<VerifyLog>) - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Sets the verification log factory.
- SHA1 - com.android.tools.build.apkzlib.sign.DigestAlgorithm
-
SHA-1 digest.
- SHA256 - com.android.tools.build.apkzlib.sign.DigestAlgorithm
-
SHA-256 digest.
- SignatureAlgorithm - Enum in com.android.tools.build.apkzlib.sign
-
Signature algorithm.
- signatureAlgorithmName(DigestAlgorithm) - Method in enum com.android.tools.build.apkzlib.sign.SignatureAlgorithm
-
Obtains the name of the signature algorithm when used with a digest algorithm.
- signatureAlgorithmSuffix - Variable in enum com.android.tools.build.apkzlib.sign.SignatureAlgorithm
-
Suffix appended to digest algorithm to obtain signature algorithm.
- SigningBlockUtils - Class in com.android.tools.build.apkzlib.utils
-
Generates and appends a new block to APK v2 Signature block.
- SigningExtension - Class in com.android.tools.build.apkzlib.sign
-
ZFileextension which signs the APK. - SigningExtension(SigningOptions) - Constructor for class com.android.tools.build.apkzlib.sign.SigningExtension
- SigningOptions - Class in com.android.tools.build.apkzlib.sign
-
A class that contains data to initialize SigningExtension.
- SigningOptions() - Constructor for class com.android.tools.build.apkzlib.sign.SigningOptions
- SigningOptions.Builder - Class in com.android.tools.build.apkzlib.sign
-
An implementation of builder pattern to create a
SigningOptionsobject. - SigningOptions.Validation - Enum in com.android.tools.build.apkzlib.sign
- size - Variable in enum com.android.tools.build.apkzlib.zip.DataDescriptorType
-
The number of bytes the data descriptor spans.
- size() - Method in class com.android.tools.build.apkzlib.zip.ExtraField.AlignmentSegment
- size() - Method in class com.android.tools.build.apkzlib.zip.ExtraField.RawDataSegment
- size() - Method in interface com.android.tools.build.apkzlib.zip.ExtraField.Segment
-
Obtains the size of the segment including the header ID.
- size() - Method in class com.android.tools.build.apkzlib.zip.ExtraField
-
Obtains the size of the extra field.
- size() - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- size() - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
- size() - Method in class com.android.tools.build.apkzlib.zip.Zip64Eocd
-
Gets the size (in bytes) of the Zip64 EOCD record.
- size() - Method in class com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector.RawSpecialPurposeData
- size() - Method in interface com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector.Z64SpecialPurposeData
-
Obtains the size of the data in this special purpose data.
- SIZE_OFFSET - Static variable in class com.android.tools.build.apkzlib.zip.Zip64Eocd
-
The location of the Zip64 size field relative to the start of the Zip64 EOCD.
- sizeNoException() - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
-
Obtains the size of this byte source.
- slice(long, long) - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
- slice(long, long) - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
- sortZipContents() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Sorts all files in the zip.
- STORE - com.android.tools.build.apkzlib.zip.CompressionMethod
-
STORE method: data is stored without any compression.
- StoredEntry - Class in com.android.tools.build.apkzlib.zip
-
A stored entry represents a file in the zip.
- StoredEntryType - Enum in com.android.tools.build.apkzlib.zip
-
Type of stored entry.
T
- TemporaryDirectory - Interface in com.android.tools.build.apkzlib.bytestorage
-
A temporary directory is a directory that creates temporary files.
- TemporaryDirectoryFactory - Interface in com.android.tools.build.apkzlib.bytestorage
-
Factory that creates temporary directories.
- TemporaryDirectoryStorage - Class in com.android.tools.build.apkzlib.bytestorage
-
Byte storage that keeps all byte sources as files in a temporary directory.
- TemporaryDirectoryStorage(TemporaryDirectoryFactory) - Constructor for class com.android.tools.build.apkzlib.bytestorage.TemporaryDirectoryStorage
-
Creates a new storage using the provided temporary directory.
- TemporaryFile - Class in com.android.tools.build.apkzlib.bytestorage
-
A temporary file or directory.
- TemporaryFile(File) - Constructor for class com.android.tools.build.apkzlib.bytestorage.TemporaryFile
-
Creates a new wrapper around the given file.
- toBytes() - Method in class com.android.tools.build.apkzlib.zip.Zip64Eocd
-
Gets the byte representation of The Zip64 EOCD record.
- touch() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Forcibly marks this zip file as touched, forcing it to be updated when
ZFile.update()orZFile.close()are invoked. - TRUE_SIZE_DIFFERENCE - Static variable in class com.android.tools.build.apkzlib.zip.Zip64Eocd
-
The difference between the size in the size field and the true size of the Zip64 EOCD.
U
- UNCOMPRESSED_AND_ALIGNED - com.android.tools.build.apkzlib.zfile.NativeLibrariesPackagingMode
-
Native libs are packaged uncompressed and page-aligned, so they can be mapped into memory at runtime.
- update() - Method in class com.android.tools.build.apkzlib.zip.ZFile
-
Updates the file writing new entries and removing deleted entries.
- updated() - Method in class com.android.tools.build.apkzlib.zip.ZFileExtension
-
The zip file has been updated on disk.
V
- v1 - Variable in class com.android.tools.build.apkzlib.utils.ApkZLibPair
-
First value.
- v2 - Variable in class com.android.tools.build.apkzlib.utils.ApkZLibPair
-
Second value.
- valueOf(String) - Static method in enum com.android.tools.build.apkzlib.sign.DigestAlgorithm
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.android.tools.build.apkzlib.sign.SignatureAlgorithm
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.android.tools.build.apkzlib.sign.SigningOptions.Validation
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.android.tools.build.apkzlib.zfile.NativeLibrariesPackagingMode
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.android.tools.build.apkzlib.zip.CompressionMethod
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.android.tools.build.apkzlib.zip.DataDescriptorType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum com.android.tools.build.apkzlib.zip.StoredEntryType
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum com.android.tools.build.apkzlib.sign.DigestAlgorithm
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.android.tools.build.apkzlib.sign.SignatureAlgorithm
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.android.tools.build.apkzlib.sign.SigningOptions.Validation
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.android.tools.build.apkzlib.zfile.NativeLibrariesPackagingMode
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.android.tools.build.apkzlib.zip.CompressionMethod
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.android.tools.build.apkzlib.zip.DataDescriptorType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- values() - Static method in enum com.android.tools.build.apkzlib.zip.StoredEntryType
-
Returns an array containing the constants of this enum type, in the order they are declared.
- verify(boolean, String, Object...) - Method in interface com.android.tools.build.apkzlib.zip.VerifyLog
-
Performs verification of a non-critical condition, logging a message if the condition is not verified.
- VerifyLog - Interface in com.android.tools.build.apkzlib.zip
-
The verify log contains verification messages.
- VERSION_WITH_CENTRAL_FILE_ENCRYPTION - Static variable in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeaderCompressInfo
-
Version of zip file that uses central file encryption and version 2 of the Zip64 EOCD
- VERSION_WITH_DIRECTORIES_AND_DEFLATE - Static variable in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeaderCompressInfo
-
Version of zip file that only supports directories and deflated files.
- VERSION_WITH_STORE_FILES_ONLY - Static variable in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeaderCompressInfo
-
Version of zip file that only supports stored files.
- VERSION_WITH_ZIP64_EXTENSIONS - Static variable in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeaderCompressInfo
-
Version of zip file that only supports ZIP64 format extensions
W
- write(ByteBuffer) - Method in class com.android.tools.build.apkzlib.zip.ExtraField.AlignmentSegment
- write(ByteBuffer) - Method in class com.android.tools.build.apkzlib.zip.ExtraField.RawDataSegment
- write(ByteBuffer) - Method in interface com.android.tools.build.apkzlib.zip.ExtraField.Segment
-
Writes the segment to a buffer.
- write(ByteBuffer) - Method in class com.android.tools.build.apkzlib.zip.ExtraField
-
Writes the extra field to the given output buffer.
- write(ByteBuffer) - Method in class com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector.RawSpecialPurposeData
- write(ByteBuffer) - Method in interface com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector.Z64SpecialPurposeData
-
Writes the special purpose data to the buffer.
- writeFile(File, String) - Method in interface com.android.tools.build.apkzlib.zfile.ApkCreator
-
Writes a new
Fileinto the archive. - writeUnsigned2Le(ByteBuffer, int) - Static method in class com.android.tools.build.apkzlib.zip.utils.LittleEndianUtils
-
Writes 2 bytes in little-endian format, converting them from a 16-bit value.
- writeUnsigned4Le(ByteBuffer, long) - Static method in class com.android.tools.build.apkzlib.zip.utils.LittleEndianUtils
-
Writes 4 bytes in little-endian format, converting them from a 32-bit value.
- writeUnsigned8Le(ByteBuffer, long) - Static method in class com.android.tools.build.apkzlib.zip.utils.LittleEndianUtils
-
Writes 8 bytes in little-endian format, converting them from a signed 64-bit value.
- writeZip(File, Function<String, String>, Predicate<String>) - Method in interface com.android.tools.build.apkzlib.zfile.ApkCreator
-
Copies the content of a Jar/Zip archive into the receiver archive.
Z
- ZFile - Class in com.android.tools.build.apkzlib.zip
-
The
ZFileprovides the main interface for interacting with zip files. - ZFile(File) - Constructor for class com.android.tools.build.apkzlib.zip.ZFile
-
Deprecated.
- ZFile(File, ZFileOptions) - Constructor for class com.android.tools.build.apkzlib.zip.ZFile
-
Deprecated.
- ZFile(File, ZFileOptions, boolean) - Constructor for class com.android.tools.build.apkzlib.zip.ZFile
-
Deprecated.
- ZFileExtension - Class in com.android.tools.build.apkzlib.zip
-
An extension of a
ZFile. - ZFileExtension() - Constructor for class com.android.tools.build.apkzlib.zip.ZFileExtension
- ZFileOptions - Class in com.android.tools.build.apkzlib.zip
-
Options to create a
ZFile. - ZFileOptions() - Constructor for class com.android.tools.build.apkzlib.zip.ZFileOptions
-
Creates a new options object.
- ZFiles - Class in com.android.tools.build.apkzlib.zfile
-
Factory for
ZFiles that are specifically configured to be APKs, AARs, ... - ZFiles() - Constructor for class com.android.tools.build.apkzlib.zfile.ZFiles
- Zip64Eocd - Class in com.android.tools.build.apkzlib.zip
-
Zip64 End of Central Directory record in a zip file.
- Zip64ExtensibleDataSector - Class in com.android.tools.build.apkzlib.zip
-
Contains the special purpose data for the Zip64 EOCD record.
- Zip64ExtensibleDataSector() - Constructor for class com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector
-
Creates an Extensible Data Sector with no special purpose data.
- Zip64ExtensibleDataSector(byte[]) - Constructor for class com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector
-
Creates a Zip64 Extensible Data Sector based on existing raw data.
- Zip64ExtensibleDataSector(ImmutableList<Zip64ExtensibleDataSector.Z64SpecialPurposeData>) - Constructor for class com.android.tools.build.apkzlib.zip.Zip64ExtensibleDataSector
-
Creates a Zip64 Extensible Data with the given Special purpose data.
- Zip64ExtensibleDataSector.RawSpecialPurposeData - Class in com.android.tools.build.apkzlib.zip
-
Special Purpose Data containing raw data: this class represents a general "special purpose data" containing an array of bytes as data.
- Zip64ExtensibleDataSector.SpecialPurposeDataFactory - Interface in com.android.tools.build.apkzlib.zip
- Zip64ExtensibleDataSector.Z64SpecialPurposeData - Interface in com.android.tools.build.apkzlib.zip
- Zip64NotSupportedException - Exception in com.android.tools.build.apkzlib.zip.compress
-
Exception raised by ZFile when encountering unsupported Zip64 format jar files.
- Zip64NotSupportedException(String) - Constructor for exception com.android.tools.build.apkzlib.zip.compress.Zip64NotSupportedException
All Classes All Packages