Class ChunkBasedByteStorageFactory
- java.lang.Object
-
- com.android.tools.build.apkzlib.bytestorage.ChunkBasedByteStorageFactory
-
- All Implemented Interfaces:
ByteStorageFactory
public class ChunkBasedByteStorageFactory extends java.lang.Object implements ByteStorageFactory
ByteStorageFactorythat createsByteStorageinstances that keep all data in memory.
-
-
Constructor Summary
Constructors Constructor Description ChunkBasedByteStorageFactory(ByteStorageFactory delegate)Creates a new factory whose storages are created using delegates from the given factory.ChunkBasedByteStorageFactory(ByteStorageFactory delegate, java.lang.Long maxChunkSize)Creates a new factory whose storages use the given maximum chunk size and are created using delegates from the given factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteStoragecreate()Creates a new storage.
-
-
-
Constructor Detail
-
ChunkBasedByteStorageFactory
public ChunkBasedByteStorageFactory(ByteStorageFactory delegate)
Creates a new factory whose storages are created using delegates from the given factory.
-
ChunkBasedByteStorageFactory
public ChunkBasedByteStorageFactory(ByteStorageFactory delegate, @Nullable java.lang.Long maxChunkSize)
Creates a new factory whose storages use the given maximum chunk size and are created using delegates from the given factory.
-
-
Method Detail
-
create
public ByteStorage create() throws java.io.IOException
Description copied from interface:ByteStorageFactoryCreates a new storage.- Specified by:
createin interfaceByteStorageFactory- Returns:
- a storage that should be closed when no longer used.
- Throws:
java.io.IOException
-
-