Class FileChartSizeParser

java.lang.Object
be.gaudry.model.file.AbstractFileParser<Long>
be.gaudry.model.file.parser.FileChartSizeParser
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class FileChartSizeParser extends AbstractFileParser<Long>
File size parser, reports some files size ranges
Since:
1.0 Sep 21, 2009
Author:
Steph GAUDRY
  • Field Details

    • rangeTexts

      public final String[] rangeTexts
  • Constructor Details

    • FileChartSizeParser

      public FileChartSizeParser()
  • Method Details

    • getInstance

      public static FileChartSizeParser getInstance()
    • getLength

      public String getLength(long length)
    • performOnFile

      protected boolean performOnFile(AbstractBrolWorker<Long> bgw, File file, int progressPercent, int subDirDeep)
      Description copied from class: AbstractFileParser
      Do something on each file
      Specified by:
      performOnFile in class AbstractFileParser<Long>
      Parameters:
      bgw - AbstractBrolWorker to perform cancel if needed, and report progress
      file - file to check
      progressPercent - Progress percentage
      subDirDeep - Deep of the directory in comparison with start directory
      Returns:
      true if we must stop the parsing of current directory (ie. if we have a vob file, we don't check the other files in this directory) false otherwise