Package com.android.tools.apk.analyzer
Interface ArchiveContext
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface ArchiveContext extends java.lang.AutoCloseableRepresents a top levelArchiveand its associatedArchiveManagerused to keep track of temporary files and directories required for extraction. Use theclose()method to ensure immediate release of file handles and deletion of temporary files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the main archive and all inner archives, deleting temporary files and directories used for extractionArchivegetArchive()The main (or "outer") archiveArchiveManagergetArchiveManager()The responsible for keeping track of inner archive resources
-
-
-
Method Detail
-
getArchive
@NonNull Archive getArchive()
The main (or "outer") archive
-
getArchiveManager
@NonNull ArchiveManager getArchiveManager()
The responsible for keeping track of inner archive resources
-
close
void close() throws java.io.IOExceptionCloses the main archive and all inner archives, deleting temporary files and directories used for extraction- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
-