Package com.android.tools.apk.analyzer
Interface Archive
-
- All Superinterfaces:
java.lang.AutoCloseable
public interface Archive extends java.lang.AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the archive filejava.nio.file.PathgetContentRoot()Returns thePathof the root entry in thearchive file system, e.g.java.nio.file.PathgetPath()Returns thePathof the archive in the local file systembooleanisBinaryXml(java.nio.file.Path p, byte[] content)Returnstrueif the entry at the given path in the archive file system is a Chunk encoded XML file.booleanisProtoXml(java.nio.file.Path p, byte[] content)Returnstrueif the entry at the given path in the archive file system is an XML file represented as a resource protobuf.
-
-
-
Method Detail
-
getPath
@NonNull java.nio.file.Path getPath()
Returns thePathof the archive in the local file system
-
getContentRoot
@NonNull java.nio.file.Path getContentRoot()
Returns thePathof the root entry in thearchive file system, e.g. the local file system or the a zip archive file system
-
isBinaryXml
boolean isBinaryXml(@NonNull java.nio.file.Path p, @NonNull byte[] content)Returnstrueif the entry at the given path in the archive file system is a Chunk encoded XML file.
-
isProtoXml
boolean isProtoXml(@NonNull java.nio.file.Path p, @NonNull byte[] content)Returnstrueif the entry at the given path in the archive file system is an XML file represented as a resource protobuf.
-
close
void close() throws java.io.IOExceptionCloses the archive file- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.io.IOException
-
-