Class TextFileFilter

  • All Implemented Interfaces:
    java.io.FileFilter

    public class TextFileFilter
    extends java.lang.Object
    implements java.io.FileFilter
    A Filter class that only accept .txt files. Example on how to apply FileFilter to read only files that you want.
    • Constructor Summary

      Constructors 
      Constructor Description
      TextFileFilter()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(java.io.File pathname)  
      • Methods inherited from class java.lang.Object

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

      • TextFileFilter

        public TextFileFilter()
    • Method Detail

      • accept

        public boolean accept​(java.io.File pathname)
        Specified by:
        accept in interface java.io.FileFilter