Class TXTFileFilter

    • Constructor Detail

      • TXTFileFilter

        public TXTFileFilter()
        Construct.
      • TXTFileFilter

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

      • isTextFile

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

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

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