com.itextpdf.text.log
Class NoOpCounter

java.lang.Object
  extended by com.itextpdf.text.log.NoOpCounter
All Implemented Interfaces:
Counter

public class NoOpCounter
extends Object
implements Counter

Implementation of the Counter interface that doesn't do anything.


Constructor Summary
NoOpCounter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoOpCounter

public NoOpCounter()
Method Detail

getCounter

public Counter getCounter(Class<?> klass)
Description copied from interface: Counter
Gets a Counter instance for a specific class.

Specified by:
getCounter in interface Counter
See Also:
Counter.getCounter(java.lang.Class)

read

public void read(long l)
Description copied from interface: Counter
This method gets triggered if a file is read.

Specified by:
read in interface Counter
Parameters:
l - the length of the file that was written
See Also:
Counter.read(long)

written

public void written(long l)
Description copied from interface: Counter
This method gets triggered if a file is written.

Specified by:
written in interface Counter
Parameters:
l - the length of the file that was written
See Also:
Counter.written(long)


Copyright © 2013. All Rights Reserved.