src/solaris/classes/sun/management/FileSystemImpl.java

Print this page




  32  * Solaris/Linux implementation of sun.management.FileSystem
  33  */
  34 public class FileSystemImpl extends FileSystem {
  35 
  36     public boolean supportsFileSecurity(File f) throws IOException {
  37         return true;
  38     }
  39 
  40     public boolean isAccessUserOnly(File f) throws IOException {
  41         return isAccessUserOnly0(f.getPath());
  42     }
  43 
  44     // Native methods
  45 
  46     static native boolean isAccessUserOnly0(String path) throws IOException;
  47 
  48     // Initialization
  49 
  50     static {
  51         java.security.AccessController
  52             .doPrivileged(new sun.security.action.LoadLibraryAction("management"));




  53     }
  54 }


  32  * Solaris/Linux implementation of sun.management.FileSystem
  33  */
  34 public class FileSystemImpl extends FileSystem {
  35 
  36     public boolean supportsFileSecurity(File f) throws IOException {
  37         return true;
  38     }
  39 
  40     public boolean isAccessUserOnly(File f) throws IOException {
  41         return isAccessUserOnly0(f.getPath());
  42     }
  43 
  44     // Native methods
  45 
  46     static native boolean isAccessUserOnly0(String path) throws IOException;
  47 
  48     // Initialization
  49 
  50     static {
  51         java.security.AccessController
  52             .doPrivileged(new java.security.PrivilegedAction<Void>() {
  53                 public Void run() {
  54                     System.loadLibrary("management");
  55                     return null;
  56             }});
  57     }
  58 }