public class SystemOutCounter extends Object implements Counter
Counter implementation that outputs information about read and written documents to System.out| Modifier and Type | Field and Description |
|---|---|
protected String |
name
The name of the class for which the Counter was created
(or iText if no name is available)
|
| Constructor and Description |
|---|
SystemOutCounter() |
SystemOutCounter(Class<?> cls) |
SystemOutCounter(String name) |
| Modifier and Type | Method and Description |
|---|---|
Counter |
getCounter(Class<?> cls)
Gets a Counter instance for a specific class.
|
void |
onDocumentRead(long size)
This method gets triggered if a document is read.
|
void |
onDocumentWritten(long size)
This method gets triggered if a document is written.
|
protected String name
public SystemOutCounter(String name)
public SystemOutCounter()
public SystemOutCounter(Class<?> cls)
public Counter getCounter(Class<?> cls)
CountergetCounter in interface Counterpublic void onDocumentRead(long size)
CounteronDocumentRead in interface Countersize - the length of the document that was readpublic void onDocumentWritten(long size)
CounteronDocumentWritten in interface Countersize - the length of the document that was writtenCopyright © 1998–2017 iText Group NV. All rights reserved.