if (!file.isFile() || !file.canRead()) { SVNErrorManager.error("svn: Cannot read from '" + file + "': path refers to directory or read access denied");
if (!file.isFile() || (file.exists() && !file.canRead())) { SVNErrorManager.error("svn: Cannot read from '" + file + "': path refers to directory or read access denied");
    public static InputStream openFileForReading(File file) throws SVNException {        if (file == null) {            return null;        }        if (!file.isFile() || !file.canRead()) {            SVNErrorManager.error("svn: Cannot read from '" + file                    + "': path refers to directory or read access denied");        }        if (!file.exists()) {            return DUMMY_IN;        }        try {            return new BufferedInputStream(new FileInputStream(file));        } catch (FileNotFoundException e) {            SVNErrorManager.error("svn: Cannot read from '" + file + "': "                    + e.getMessage());        }        return null;    }