Here you can find the source of isReadableFile(File path)
Parameter | Description |
---|---|
path | a file path. |
public static boolean isReadableFile(File path)
//package com.java2s; /*//from ww w . ja v a2s . c o m * Copyright (c) 2015-2016 QuartzDesk.com. * Licensed under the MIT license (https://opensource.org/licenses/MIT). */ import java.io.File; public class Main { /** * Returns true if the specified path represents a readable file, false otherwise. * * @param path a file path. * @return true if the specified path represents a readable file, false otherwise. */ public static boolean isReadableFile(File path) { return path.isFile() && path.canRead(); } }