Class SearchFilesParser

java.lang.Object
be.gaudry.model.file.AbstractFileParser<Long>
be.gaudry.model.file.renamer.parsers.SearchFilesParser
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class SearchFilesParser extends AbstractFileParser<Long>
Since:
1.0 23-juin-08
Author:
Steph GAUDRY
  • Constructor Details

    • SearchFilesParser

      public SearchFilesParser()
  • Method Details

    • getExtensions

      public List<String> getExtensions()
      Returns:
      the extensions
    • setExtensions

      public void setExtensions(List<String> extensions)
      Parameters:
      extensions - the extensions to set
    • setSowDirectories

      public void setSowDirectories(boolean showDirectories)
      Allows to retrieve also the directories by the parser.
      Parameters:
      showDirectories - true to return also directories, false to return only files.
      Since:
      0.0.12-SNAPSHOT (Feb 8 2009)
    • addExtension

      public void addExtension(String extension)
    • 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