Class ProfileNameStatisticsAggregator

java.lang.Object
com.itextpdf.commons.actions.AbstractStatisticsAggregator
com.itextpdf.pdfoptimizer.statistics.ProfileNameStatisticsAggregator

public class ProfileNameStatisticsAggregator extends com.itextpdf.commons.actions.AbstractStatisticsAggregator
Statistics aggregator which aggregates profile names of optimize events.
  • Constructor Details

    • ProfileNameStatisticsAggregator

      public ProfileNameStatisticsAggregator()
      Creates a ProfileNameStatisticsAggregator to aggregate profile names of optimize events.
  • Method Details

    • aggregate

      public void aggregate (com.itextpdf.commons.actions.AbstractStatisticsEvent event)
      Aggregates profile name from the provided event.
      Specified by:
      aggregate in class com.itextpdf.commons.actions.AbstractStatisticsAggregator
      Parameters:
      event - ProfileNameStatisticsEvent instance
    • retrieveAggregation

      public Object retrieveAggregation()
      Retrieves Map where keys are profile names and values are the amounts of such PDF documents.
      Specified by:
      retrieveAggregation in class com.itextpdf.commons.actions.AbstractStatisticsAggregator
      Returns:
      aggregated Map
    • merge

      public void merge (com.itextpdf.commons.actions.AbstractStatisticsAggregator aggregator)
      Merges data about amounts of profile names from the provided aggregator into this aggregator.
      Specified by:
      merge in class com.itextpdf.commons.actions.AbstractStatisticsAggregator
      Parameters:
      aggregator - ProfileNameStatisticsAggregator from which data will be taken