Class SizeOfPdfStatisticsAggregator
java.lang.Object
com.itextpdf.commons.actions.AbstractStatisticsAggregator
com.itextpdf.kernel.pdf.statistics.SizeOfPdfStatisticsAggregator
Statistics aggregator which aggregates size of PDF documents.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Objectprivate static final longprivate static final longprivate static final longprivate static final longprivate static final longprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaggregate(AbstractStatisticsEvent event) Aggregates size of the PDF document from the provided event.voidmerge(AbstractStatisticsAggregator aggregator) Merges data about amounts of ranges of document sizes from the provided aggregator into this aggregator.Retrieves Map where keys are ranges of document sizes and values are the amounts of such PDF documents.
-
Field Details
-
MEASURE_COEFFICIENT
private static final long MEASURE_COEFFICIENT- See Also:
-
SIZE_128KB
private static final long SIZE_128KB- See Also:
-
SIZE_1MB
private static final long SIZE_1MB- See Also:
-
SIZE_16MB
private static final long SIZE_16MB- See Also:
-
SIZE_128MB
private static final long SIZE_128MB- See Also:
-
STRING_FOR_128KB
- See Also:
-
STRING_FOR_1MB
- See Also:
-
STRING_FOR_16MB
- See Also:
-
STRING_FOR_128MB
- See Also:
-
STRING_FOR_INF
- See Also:
-
DOCUMENT_SIZES
-
SORTED_UPPER_BOUNDS_OF_SIZES
-
lock
-
numberOfDocuments
-
-
Constructor Details
-
SizeOfPdfStatisticsAggregator
public SizeOfPdfStatisticsAggregator()
-
-
Method Details
-
aggregate
Aggregates size of the PDF document from the provided event.- Specified by:
aggregatein classAbstractStatisticsAggregator- Parameters:
event-SizeOfPdfStatisticsEventinstance
-
retrieveAggregation
Retrieves Map where keys are ranges of document sizes and values are the amounts of such PDF documents.- Specified by:
retrieveAggregationin classAbstractStatisticsAggregator- Returns:
- aggregated
Map
-
merge
Merges data about amounts of ranges of document sizes from the provided aggregator into this aggregator.- Specified by:
mergein classAbstractStatisticsAggregator- Parameters:
aggregator-SizeOfPdfStatisticsAggregatorfrom which data will be taken.
-