Class PNGFileFilter

    • Constructor Detail

      • PNGFileFilter

        public PNGFileFilter()
        Construct.
      • PNGFileFilter

        public PNGFileFilter​(boolean acceptDirectories)
        Constructor.
        Parameters:
        acceptDirectories - is true to permit to this file filter to accept directories; false if the directories should not match.
    • Method Detail

      • isPNGFile

        public static boolean isPNGFile​(File file)
        Replies if the specified file contains PNG picture.
        Parameters:
        file - is the file to test.
        Returns:
        true if the given file contains PNG picture, otherwise false
      • isPNGFile

        public static boolean isPNGFile​(URL file)
        Replies if the specified file contains PNG picture.
        Parameters:
        file - is the file to test.
        Returns:
        true if the given file contains PNG picture, otherwise false
      • isPNGFile

        public static boolean isPNGFile​(String file)
        Replies if the specified file contains PNG picture.
        Parameters:
        file - is the file to test.
        Returns:
        true if the given file contains PNG picture, otherwise false