org.apache.commons.io.file

Interface Counters.PathCounters

  • Enclosing class:
    Counters

    public static interface Counters.PathCounters
    Counts files, directories, and sizes, as a visit proceeds.
    • Method Detail

      • getByteCounter

        Counters.Counter getByteCounter()
        Gets the byte counter.
        Returns:
        the byte counter.
      • getDirectoryCounter

        Counters.Counter getDirectoryCounter()
        Gets the directory counter.
        Returns:
        the directory counter.
      • getFileCounter

        Counters.Counter getFileCounter()
        Gets the file counter.
        Returns:
        the file counter.
      • reset

        default void reset()
        Resets the counts to 0.

Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.