Class DefaultCounter

java.lang.Object
com.itextpdf.text.log.DefaultCounter
All Implemented Interfaces:
Counter

public class DefaultCounter extends Object implements Counter
Implementation of the Counter interface that doesn't do anything.
  • Field Details

    • count

      private int count
    • level

      private int level
    • repeat

      private final int[] repeat
    • repeat_level

      private int repeat_level
    • message

      private static byte[] message
  • Constructor Details

    • DefaultCounter

      public DefaultCounter()
  • Method Details

    • 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
      Parameters:
      klass -
      Returns:
      this Counter implementation
      See Also:
    • 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:
    • 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:
    • plusOne

      private void plusOne()