Class SysoCounter

  • All Implemented Interfaces:
    Counter

    public class SysoCounter
    extends java.lang.Object
    implements Counter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String name
      The name of the class for which the Counter was created (or iText if no name is available)
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
        SysoCounter()
      Empty SysoCounter constructor.
      protected SysoCounter​(java.lang.Class<?> klass)
      Constructs a SysoCounter for a specific class.
    • Method Summary

      All Methods Instance Methods Concrete 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
        The name of the class for which the Counter was created (or iText if no name is available)
    • Constructor Detail

      • SysoCounter

        public SysoCounter()
        Empty SysoCounter constructor.
      • SysoCounter

        protected SysoCounter​(java.lang.Class<?> klass)
        Constructs a SysoCounter for a specific class.
        Parameters:
        klass -
    • Method Detail

      • 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)