src/share/classes/java/io/FileSystem.java
Print this page
*** 23,32 ****
--- 23,33 ----
* questions.
*/
package java.io;
+ import java.lang.annotation.Native;
/**
* Package-private abstract class for the local filesystem abstraction.
*/
*** 96,120 ****
/* -- Attribute accessors -- */
/* Constants for simple boolean attributes */
! public static final int BA_EXISTS = 0x01;
! public static final int BA_REGULAR = 0x02;
! public static final int BA_DIRECTORY = 0x04;
! public static final int BA_HIDDEN = 0x08;
/**
* Return the simple boolean attributes for the file or directory denoted
* by the given abstract pathname, or zero if it does not exist or some
* other I/O error occurs.
*/
public abstract int getBooleanAttributes(File f);
! public static final int ACCESS_READ = 0x04;
! public static final int ACCESS_WRITE = 0x02;
! public static final int ACCESS_EXECUTE = 0x01;
/**
* Check whether the file or directory denoted by the given abstract
* pathname may be accessed by this process. The second argument specifies
* which access, ACCESS_READ, ACCESS_WRITE or ACCESS_EXECUTE, to check.
--- 97,121 ----
/* -- Attribute accessors -- */
/* Constants for simple boolean attributes */
! @Native public static final int BA_EXISTS = 0x01;
! @Native public static final int BA_REGULAR = 0x02;
! @Native public static final int BA_DIRECTORY = 0x04;
! @Native public static final int BA_HIDDEN = 0x08;
/**
* Return the simple boolean attributes for the file or directory denoted
* by the given abstract pathname, or zero if it does not exist or some
* other I/O error occurs.
*/
public abstract int getBooleanAttributes(File f);
! @Native public static final int ACCESS_READ = 0x04;
! @Native public static final int ACCESS_WRITE = 0x02;
! @Native public static final int ACCESS_EXECUTE = 0x01;
/**
* Check whether the file or directory denoted by the given abstract
* pathname may be accessed by this process. The second argument specifies
* which access, ACCESS_READ, ACCESS_WRITE or ACCESS_EXECUTE, to check.
*** 201,213 ****
* List the available filesystem roots.
*/
public abstract File[] listRoots();
/* -- Disk usage -- */
! public static final int SPACE_TOTAL = 0;
! public static final int SPACE_FREE = 1;
! public static final int SPACE_USABLE = 2;
public abstract long getSpace(File f, int t);
/* -- Basic infrastructure -- */
--- 202,214 ----
* List the available filesystem roots.
*/
public abstract File[] listRoots();
/* -- Disk usage -- */
! @Native public static final int SPACE_TOTAL = 0;
! @Native public static final int SPACE_FREE = 1;
! @Native public static final int SPACE_USABLE = 2;
public abstract long getSpace(File f, int t);
/* -- Basic infrastructure -- */