Java Is Readable File isReadableFile(File file)

Here you can find the source of isReadableFile(File file)

Description

Check the file can read or not

License

Open Source License

Parameter

Parameter Description
file a parameter

Return

true if the file is readable

Declaration

public static boolean isReadableFile(File file) 

Method Source Code

//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();
    }
}

Related

  1. isReachable(String internetProtocolAddress)
  2. isReadable(File arcFile)
  3. isReadable(String filename)
  4. isReadableFile(File f)
  5. isReadableFile(File file)
  6. isReadableFile(File file)
  7. isReadableFile(File file)
  8. isReadableFile(File path)
  9. isReadableFile(final File f)