public static boolean isTextFile(File f){
  return !f.isDirectory() && isMimeText(f.getPath());
}

public static boolean isTextFile ( File f ) { return ! f . isDirectory ( ) && isMimeText ( f . getPath ( ) ) ; }
indicates whether file is considered to be " text " .
