Here you can find the source of isReadableFile(File file)
Parameter | Description |
---|---|
file | a parameter |
public static boolean isReadableFile(File file)
//package com.java2s; import java.io.File; public class Main { /**/*from ww w . j a va2 s. c o m*/ * Check the file can read or not * @param file * @return true if the file is readable */ public static boolean isReadableFile(File file) { return file != null && file.exists() && file.isFile() && file.canRead(); } }