Package com.android.tools.apk.analyzer
Class ArchiveEntry
- java.lang.Object
-
- com.android.tools.apk.analyzer.ArchiveEntry
-
- Direct Known Subclasses:
ArchiveErrorEntry,ArchivePathEntry
public abstract class ArchiveEntry extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ArchiveEntry(Archive archive, java.nio.file.Path path, java.lang.String pathPrefix)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ArchivegetArchive()longgetDownloadFileSize()abstract java.lang.StringgetNodeDisplayString()Returns a short description string that can be used when displaying this entry in the context of its parent entry, for example the filename, without the parent path, for an entry corresponding to a file.java.nio.file.PathgetPath()java.lang.StringgetPathPrefix()longgetRawFileSize()abstract java.lang.StringgetSummaryDisplayString()Returns a description string that summarizes the content of this entry and its parent(s), for example a full path if the entry corresponding to a file.voidsetDownloadFileSize(long downloadFileSize)voidsetRawFileSize(long rawFileSize)java.lang.StringtoString()
-
-
-
Constructor Detail
-
ArchiveEntry
public ArchiveEntry(@NonNull Archive archive, @NonNull java.nio.file.Path path, @NonNull java.lang.String pathPrefix)
-
-
Method Detail
-
setRawFileSize
public void setRawFileSize(long rawFileSize)
-
getRawFileSize
public long getRawFileSize()
-
setDownloadFileSize
public void setDownloadFileSize(long downloadFileSize)
-
getDownloadFileSize
public long getDownloadFileSize()
-
getPath
@NonNull public java.nio.file.Path getPath()
-
getPathPrefix
@NonNull public java.lang.String getPathPrefix()
-
getArchive
@NonNull public Archive getArchive()
-
getNodeDisplayString
@NonNull public abstract java.lang.String getNodeDisplayString()
Returns a short description string that can be used when displaying this entry in the context of its parent entry, for example the filename, without the parent path, for an entry corresponding to a file.
-
getSummaryDisplayString
@NonNull public abstract java.lang.String getSummaryDisplayString()
Returns a description string that summarizes the content of this entry and its parent(s), for example a full path if the entry corresponding to a file.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-