Class CmsPrefixFileFilter

  • All Implemented Interfaces:
    java.io.FileFilter

    public class CmsPrefixFileFilter
    extends java.lang.Object
    implements java.io.FileFilter
    Implements the file filter used to guess the right suffix of a deleted jsp file.

    Since:
    8.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      CmsPrefixFileFilter​(java.lang.String fileName)
      Creates a new instance of this filter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File f)
      Accepts the given file if its name starts with the name of of the base file (without extension) and ends with the extension.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmsPrefixFileFilter

        public CmsPrefixFileFilter​(java.lang.String fileName)
        Creates a new instance of this filter.

        Parameters:
        fileName - the base file to compare with.
    • Method Detail

      • accept

        public boolean accept​(java.io.File f)
        Accepts the given file if its name starts with the name of of the base file (without extension) and ends with the extension.

        Specified by:
        accept in interface java.io.FileFilter
        See Also:
        FileFilter.accept(java.io.File)