Class PathUtils.SuffixPathFilter

java.lang.Object
fr.ens.biologie.genomique.eoulsan.util.hadoop.PathUtils.SuffixPathFilter
All Implemented Interfaces:
org.apache.hadoop.fs.PathFilter
Enclosing class:
PathUtils

public static final class PathUtils.SuffixPathFilter extends Object implements org.apache.hadoop.fs.PathFilter
Simple PathFilter to filter Paths with their suffix
Author:
Laurent Jourdren
  • Constructor Details

    • SuffixPathFilter

      public SuffixPathFilter(String suffix)
      Public constructor.
      Parameters:
      suffix - suffix to use by ExtensionPathFilter
    • SuffixPathFilter

      public SuffixPathFilter(String suffix, boolean allowCompressedFile)
      Public constructor.
      Parameters:
      suffix - suffix to use by ExtensionPathFilter
      allowCompressedFile - allow files with a compressed extension
  • Method Details

    • accept

      public boolean accept(org.apache.hadoop.fs.Path path)
      Specified by:
      accept in interface org.apache.hadoop.fs.PathFilter