Class ClientIgnoreChecker


  • public class ClientIgnoreChecker
    extends java.lang.Object
    Handle the checking of patterns in ignore files.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClientIgnoreChecker​(java.lang.String clientRoot, java.lang.String ignoreFileName, java.nio.charset.Charset charset)
      Instantiates a new ignore file checker.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean match​(java.io.File file)
      Check for an ignore match of the file.
      • Methods inherited from class java.lang.Object

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

      • ClientIgnoreChecker

        public ClientIgnoreChecker​(java.lang.String clientRoot,
                                   java.lang.String ignoreFileName,
                                   java.nio.charset.Charset charset)
        Instantiates a new ignore file checker.
        Parameters:
        clientRoot - the client root
        ignoreFileName - the ignore file name
        charset - the charset
    • Method Detail

      • match

        public boolean match​(java.io.File file)
                      throws java.io.FileNotFoundException,
                             java.io.IOException
        Check for an ignore match of the file.
        Parameters:
        file - the file
        Returns:
        true, if successful
        Throws:
        java.io.FileNotFoundException - the file not found exception
        java.io.IOException - Signals that an I/O exception has occurred.