Class ZIPFileFilter

    • Constructor Detail

      • ZIPFileFilter

        public ZIPFileFilter()
        Construct.
      • ZIPFileFilter

        public ZIPFileFilter​(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

      • isZIPFile

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

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

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