com.itextpdf.text.log
Interface Counter

All Known Implementing Classes:
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
 Counter getCounter(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(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


Copyright © 2013. All Rights Reserved.