Skip navigation links
A B C D E F G H I K L M N O P R S T U V W Z 

A

accept(T) - Method in interface com.android.tools.build.apkzlib.utils.IOExceptionConsumer
Performs an operation on the given input.
add(String, InputStream) - Method in class com.android.tools.build.apkzlib.zip.ZFile
Equivalent to call ZFile.add(String, InputStream, boolean) using true as mayCompress.
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.
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, int) - Constructor for class com.android.tools.build.apkzlib.zip.ExtraField.AlignmentSegment
Creates a new alignment segment.
AlignmentSegment(int, byte[]) - Constructor for class com.android.tools.build.apkzlib.zip.ExtraField.AlignmentSegment
Creates a new alignment segment from extra data.
API_SHA_256_ALL_ALGORITHMS - Static variable in enum com.android.tools.build.apkzlib.sign.DigestAlgorithm
API level which supports DigestAlgorithm.SHA256 for all SignatureAlgorithms.
API_SHA_256_RSA_AND_ECDSA - Static variable in enum com.android.tools.build.apkzlib.sign.DigestAlgorithm
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, PrivateKey, X509Certificate, boolean, boolean, String, String, int) - 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, PrivateKey, ImmutableList<X509Certificate>, boolean, boolean, String, String, int) - 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.
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.
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 apkzlib library.
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 ZFile is 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
 
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.

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.
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 CentralDirectoryHeader that is related to compression and may need to be computed lazily.
CentralDirectoryHeaderCompressInfo(CompressionMethod, long, long) - Constructor for class com.android.tools.build.apkzlib.zip.CentralDirectoryHeaderCompressInfo
Creates new compression information for the central directory header.
CentralDirectoryHeaderCompressInfo(CentralDirectoryHeader, CompressionMethod, 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
ByteStorageFactory that creates ByteStorage instances 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.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 CloseableByteSource from 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(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.
closed() - Method in class com.android.tools.build.apkzlib.zip.ZFileExtension
The zip file has been 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 zfile package 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 zip package.
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.
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(OutputStream) - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
 
copyTo(ByteSink) - Method in class com.android.tools.build.apkzlib.zip.LazyDelegateByteSource
 
copyTo(OutputStream) - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
 
copyTo(ByteSink) - 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(File, PrivateKey, X509Certificate, boolean, boolean, String, String, int, NativeLibrariesPackagingMode, Predicate<String>) - 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

DataDescriptorType - Enum in com.android.tools.build.apkzlib.zip
Type of data descriptor that an entry has.
decode(ByteBuffer, int, GPFlags) - Static method in class com.android.tools.build.apkzlib.zip.EncodeUtils
Decodes a file name.
decode(byte[], GPFlags) - Static method in class com.android.tools.build.apkzlib.zip.EncodeUtils
Decodes a file name.
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.length bytes 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.
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.
directRead(long, byte[]) - Method in class com.android.tools.build.apkzlib.zip.ZFile
Same as directRead(offset, data, 0, data.length).
directSize() - Method in class com.android.tools.build.apkzlib.zip.ZFile
Returns the current size (in bytes) of the underlying file.
directWrite(long, byte[], int, int) - Method in class com.android.tools.build.apkzlib.zip.ZFile
Directly writes data in the zip file.
directWrite(long, byte[]) - Method in class com.android.tools.build.apkzlib.zip.ZFile
Same as directWrite(offset, data, 0, data.length).

E

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.
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.
ExtraField - Class in com.android.tools.build.apkzlib.zip
Contains an extra field.
ExtraField(byte[]) - Constructor for class com.android.tools.build.apkzlib.zip.ExtraField
Creates an extra field based on existing raw data.
ExtraField() - Constructor for class com.android.tools.build.apkzlib.zip.ExtraField
Creates a new extra field with no segments.
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

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
 
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
 
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
 
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 since CachedFileContents.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.
getCertificate() - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
Obtains the certificate used to sign the APK.
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-null return.
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.
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.
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.
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.
getInternalAttributes() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeader
Obtains the entry's internal attributes.
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
 
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.zfile.ApkCreatorFactory.CreationData
Obtains the minimum SDK version to run the APK.
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 ApkCreator should 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.
getPrivateKey() - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
Obtains the private key used to sign the APK.
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.
getSegments() - Method in class com.android.tools.build.apkzlib.zip.ExtraField
Obtains all segments in the extra field.
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.
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.
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.
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.
getVersionExtract() - Method in class com.android.tools.build.apkzlib.zip.CentralDirectoryHeaderCompressInfo
Obtains the minimum version for extract.

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
ByteStorageFactory that creates ByteStorage instances 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 true if 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
 
isV1SigningEnabled() - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
Returns true if this APK should be signed with JAR Signature Scheme (aka v1 scheme).
isV2SigningEnabled() - Method in class com.android.tools.build.apkzlib.zfile.ApkCreatorFactory.CreationData
Returns true if this APK should be signed with APK Signature Scheme v2 (aka v2 scheme).
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
ByteSource that delegates all operations to another ByteSource.
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 and 32 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(ApkCreatorFactory.CreationData) - Method in interface com.android.tools.build.apkzlib.zfile.ApkCreatorFactory
Creates an ApkCreator with 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
 
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 ZFile that 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.

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
If the zip file is closed, opens it in read-only 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(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.
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.
OverflowToDiskByteStorageFactory - Class in com.android.tools.build.apkzlib.bytestorage
ByteStorageFactory that creates instances of ByteStorage that 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).
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(ByteProcessor<T>) - 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(byte[]) - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
Obtains the contents of the file in an existing buffer.
read() - Method in class com.android.tools.build.apkzlib.zip.utils.CloseableDelegateByteSource
 
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.
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 ZFile provided 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 time CachedSupplier.get() is invoked.
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.
setAutoSortFiles(boolean) - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
Sets whether files should be automatically sorted before updating the zip file.
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.
setEocdComment(byte[]) - Method in class com.android.tools.build.apkzlib.zip.ZFile
Sets the comment in the EOCD.
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.
setLocalExtra(ExtraField) - Method in class com.android.tools.build.apkzlib.zip.StoredEntry
Sets the contents of the local extra field.
setNoTimestamps(boolean) - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
Sets whether timestamps should be zeroed.
setStorageFactory(ByteStorageFactory) - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
Sets the byte storage factory to use.
setVerifyLogFactory(Supplier<VerifyLog>) - Method in class com.android.tools.build.apkzlib.zip.ZFileOptions
Sets the verification log factory.
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.
SigningExtension - Class in com.android.tools.build.apkzlib.sign
ZFile extension which signs the APK.
SigningExtension(int, X509Certificate, PrivateKey, boolean, boolean) - Constructor for class com.android.tools.build.apkzlib.sign.SigningExtension
 
SigningExtension(int, ImmutableList<X509Certificate>, PrivateKey, boolean, boolean) - Constructor for class com.android.tools.build.apkzlib.sign.SigningExtension
 
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
 
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.
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.
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.
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() or ZFile.close() are invoked.

U

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.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.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_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.

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.
writeFile(File, String) - Method in interface com.android.tools.build.apkzlib.zfile.ApkCreator
Writes a new File into 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.
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 ZFile provides the main interface for interacting with zip files.
ZFile(File) - Constructor for class com.android.tools.build.apkzlib.zip.ZFile
Creates a new zip file.
ZFile(File, ZFileOptions) - Constructor for class com.android.tools.build.apkzlib.zip.ZFile
Creates a new zip file.
ZFile(File, ZFileOptions, boolean) - Constructor for class com.android.tools.build.apkzlib.zip.ZFile
Creates a new zip file.
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
 
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
 
A B C D E F G H I K L M N O P R S T U V W Z 
Skip navigation links