Method canRead()
Return type: boolean
Member of:
java.io.File
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
if (file.canRead())
2
s.canRead = f.canRead();
3
if (!file.canRead())
4
if (dir == null || !dir.exists() || !dir.canRead()) return new String[0];
5
if (file != null && file.canRead()) {
6
editor.setEditable(file.canRead());
7
if(canRead && f.canRead()){
8
if (!entriesFile.exists() || !entriesFile.canRead()) return null;
9
if (new java.io.File(logFile).canRead()) {
10
if (conf.canRead()) {
11
readBox.setIcon( file.canRead() ? SELECTED_ICON : UNSELECTED_ICON);
12
if (!dir.canRead())
13
if (file.exists() && file.isFile() && file.canRead()) {
14
if(!theFile.canRead()) throw new PH_noRead("no read-access to: "+theFile.toString());
15
if (!file.canRead()) {
16
if (!file.exists() || !file.canRead()) {
17
if(f.isDirectory() && f.canRead())
18
if (!cacheBase.isDirectory() || !cacheBase.canRead()) {
19
if (file.exists() && file.canRead() && file.isFile()) {
20
if( !file.canRead() )
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.