public class SizeOfPdfStatisticsEvent extends AbstractStatisticsEvent
Constructor and Description |
---|
SizeOfPdfStatisticsEvent(long amountOfBytes, ProductData productData)
Creates an instance of this class based on the ProductData and the size of the document.
|
Modifier and Type | Method and Description |
---|---|
AbstractStatisticsAggregator |
createStatisticsAggregatorFromName(String statisticsName)
Creates statistics aggregator based on provided statistics name.
|
long |
getAmountOfBytes()
Gets number of bytes in the PDF document during the processing of which the event was sent.
|
List<String> |
getStatisticsNames()
Gets all statistics names related to this event.
|
getProductData, getProductName
public SizeOfPdfStatisticsEvent(long amountOfBytes, ProductData productData)
ProductData
and the size of the document.
amountOfBytes
- the number of bytes in the PDF document during the processing of which the event was sent
productData
- is a description of the product which has generated an event
public AbstractStatisticsAggregator createStatisticsAggregatorFromName(String statisticsName)
null
.
createStatisticsAggregatorFromName
in class AbstractStatisticsEvent
statisticsName
- name of statistics based on which aggregator will be created. Shall be one of those returned from AbstractStatisticsEvent.getStatisticsNames()
AbstractStatisticsAggregator
public List<String> getStatisticsNames()
getStatisticsNames
in class AbstractStatisticsEvent
List
of statistics names
public long getAmountOfBytes()
Copyright © 1998–2022 iText Group NV. All rights reserved.