Android File Exist doesFileExist(String paramString)

Here you can find the source of doesFileExist(String paramString)

Description

does File Exist

Declaration

public static boolean doesFileExist(String paramString) 

Method Source Code

//package com.java2s;

import java.io.File;

public class Main {
    public static boolean doesFileExist(String paramString) {
        boolean bool1 = false;
        if (paramString != null) {
            File localFile = new File(paramString);
            boolean bool2 = localFile.exists();
            bool1 = false;//from   w  ww .j a va  2s .  c  o  m
            if (bool2) {
                boolean bool3 = localFile.canRead();
                bool1 = false;
                if (bool3)
                    bool1 = true;
            }
        }
        return bool1;
    }
}

Related

  1. fileExists(String filePath)
  2. fileExists(String fname)
  3. fileExists(String path)
  4. isFileExist(String filepath)
  5. isFileNotExist(String filepath)