protected boolean fileExistsAndIsReadable ( String filename ) { File f = new File ( filename ) ; return f . exists ( ) && f . isFile ( ) && f . canRead ( ) ; }
Convenience method to check if a file exists and is readable