Package com.itextpdf.text.log
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Counter
getCounter(java.lang.Class<?> klass)
Gets a Counter instance for a specific class.void
read(long l)
This method gets triggered if a file is read.void
written(long l)
This method gets triggered if a file is written.
-
-
-
Method Detail
-
getCounter
Counter getCounter(java.lang.Class<?> klass)
Gets a Counter instance for a specific class.
-
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
-
-