/* File.java -- Class representing a file on disk
- Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007
+ Copyright (C) 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007, 2012
Free Software Foundation, Inc.
This file is part of GNU Classpath.
private final static int LENGTH = 1;
private final native long attr (int query);
- // On OSF1 V5.0, `stat' is a macro. It is easiest to use the name
- // `_stat' instead. We do the same thing for `_access' just in
- // case.
- private final native boolean _access (int query);
- private final native boolean _stat (int query);
+ private final native boolean access (int query);
+ private final native boolean stat (int query);
/**
* This is the path separator string for the current host. This field
public boolean canRead()
{
checkRead();
- return _access (READ);
+ return access (READ);
}
/**
public boolean canWrite()
{
checkWrite();
- return _access (WRITE);
+ return access (WRITE);
}
/**
if (!exists())
return false;
checkExec();
- return _access (EXEC);
+ return access (EXEC);
}
private native boolean performCreate() throws IOException;
*/
private boolean internalExists()
{
- return _access (EXISTS);
+ return access (EXISTS);
}
/**
*/
private boolean internalIsDirectory()
{
- return _stat (DIRECTORY);
+ return stat (DIRECTORY);
}
/**
public boolean isFile()
{
checkRead();
- return _stat (ISFILE);
+ return stat (ISFILE);
}
/**
public boolean isHidden()
{
checkRead();
- return _stat (ISHIDDEN);
+ return stat (ISHIDDEN);
}
/**