Interface Counter
- All Known Implementing Classes:
DefaultCounter, NoOpCounter, SysoCounter
public interface Counter
Interface that can be implemented if you want to count the number of documents
that are being processed by iText.
Implementers may use this method to record actual system usage for licensing purposes
(e.g. count the number of documents or the volumne in bytes in the context of a SaaS license).
-
Method Summary
Modifier and TypeMethodDescriptiongetCounter(Class<?> klass) Gets a Counter instance for a specific class.voidread(long l) This method gets triggered if a file is read.voidwritten(long l) This method gets triggered if a file is written.
-
Method Details
-
getCounter
-
read
void read(long l) This method gets triggered if a file is read.- Parameters:
l- the length of the file that was written
-
written
void written(long l) This method gets triggered if a file is written.- Parameters:
l- the length of the file that was written
-