java.lang.Object
net.i2p.util.FileSuffixFilter
All Implemented Interfaces:
FileFilter
Direct Known Subclasses:
RouterConsoleRunner.WarFilenameFilter

public class FileSuffixFilterextends Object implements FileFilter
A FileFilter that accepts regular files with a suffix and optionally a prefix, case-insensitive.
  • Field Details

    • begin

      private final String begin
      The name must start with this, or null.
    • end

      private final String end
      The name must end with this, or null.
  • Constructor Details

    • FileSuffixFilter

      public FileSuffixFilter(String suffix)
      A filter that accepts regular files that end with suffix, case-insensitive.
      Parameters:
      suffix - the ending filename suffix to require, matched case-insensitively
    • FileSuffixFilter

      public FileSuffixFilter(String prefix, String suffix)
      A filter that accepts regular files that start with prefix and end with suffix, case-insensitive.
      Parameters:
      prefix - the starting filename prefix to require, matched case-insensitively
      suffix - the ending filename suffix to require, matched case-insensitively
  • Method Details