Class ResourceEntryStatsCollector
- java.lang.Object
-
- com.google.devrel.gmscore.tools.apk.arsc.ResourceEntryStatsCollector
-
public class ResourceEntryStatsCollector extends java.lang.ObjectCalculates extra information about anArscBlamer.ResourceEntry, such as the total APK size the entry is responsible for. This class is not thread-safe.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceEntryStatsCollector.ResourceStatisticsStats for an individualArscBlamer.ResourceEntry.
-
Constructor Summary
Constructors Constructor Description ResourceEntryStatsCollector(ArscBlamer blamer, ResourceTableChunk resourceTable)Creates a newResourceEntryStatsCollector.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompute()java.util.Map<ArscBlamer.ResourceEntry,ResourceEntryStatsCollector.ResourceStatistics>getStats()Returns entries for which there are computed stats.ResourceEntryStatsCollector.ResourceStatisticsgetStats(ArscBlamer.ResourceEntry entry)Returns computed stats for a given entry.
-
-
-
Constructor Detail
-
ResourceEntryStatsCollector
public ResourceEntryStatsCollector(ArscBlamer blamer, ResourceTableChunk resourceTable)
Creates a newResourceEntryStatsCollector.- Parameters:
blamer- The blamer that maps resource entries to what they use.resourceTable- The resource table thatblameris blamed on.
-
-
Method Detail
-
compute
public void compute() throws java.io.IOException- Throws:
java.io.IOException
-
getStats
public java.util.Map<ArscBlamer.ResourceEntry,ResourceEntryStatsCollector.ResourceStatistics> getStats()
Returns entries for which there are computed stats. Must first callcompute().
-
getStats
public ResourceEntryStatsCollector.ResourceStatistics getStats(ArscBlamer.ResourceEntry entry)
Returns computed stats for a given entry. Must first callcompute().
-
-