jdk/src/share/classes/java/nio/file/attribute/PosixFileAttributeView.java
changeset 2072 80dfe4469bbd
parent 2057 3acf8e5e2ca0
child 3065 452aaa2899fc
equal deleted inserted replaced
2071:5e6af6d106cb 2072:80dfe4469bbd
   161 
   161 
   162     /**
   162     /**
   163      * Updates the file permissions.
   163      * Updates the file permissions.
   164      *
   164      *
   165      * @param   perms
   165      * @param   perms
   166      *          The new set of permissions
   166      *          the new set of permissions
   167      *
   167      *
   168      * @throws  ClassCastException
   168      * @throws  ClassCastException
   169      *          If the sets contains elements that are not of type {@code
   169      *          if the sets contains elements that are not of type {@code
   170      *          PosixFilePermission}
   170      *          PosixFilePermission}
   171      * @throws  IOException
   171      * @throws  IOException
   172      *          If an I/O error occurs
   172      *          if an I/O error occurs
   173      * @throws  SecurityException
   173      * @throws  SecurityException
   174      *          In the case of the default provider, a security manager is
   174      *          In the case of the default provider, a security manager is
   175      *          installed, and it denies {@link RuntimePermission}<tt>("accessUserInformation")</tt>
   175      *          installed, and it denies {@link RuntimePermission}<tt>("accessUserInformation")</tt>
   176      *          or its {@link SecurityManager#checkWrite(String) checkWrite}
   176      *          or its {@link SecurityManager#checkWrite(String) checkWrite}
   177      *          method denies write access to the file.
   177      *          method denies write access to the file.
   180 
   180 
   181     /**
   181     /**
   182      * Updates the file group-owner.
   182      * Updates the file group-owner.
   183      *
   183      *
   184      * @param   group
   184      * @param   group
   185      *          The new file group-owner
   185      *          the new file group-owner
   186 
   186      *
   187      * @throws  IOException
   187      * @throws  IOException
   188      *          If an I/O error occurs
   188      *          if an I/O error occurs
   189      * @throws  SecurityException
   189      * @throws  SecurityException
   190      *          In the case of the default provider, and a security manager is
   190      *          In the case of the default provider, and a security manager is
   191      *          installed, it denies {@link RuntimePermission}<tt>("accessUserInformation")</tt>
   191      *          installed, it denies {@link RuntimePermission}<tt>("accessUserInformation")</tt>
   192      *          or its {@link SecurityManager#checkWrite(String) checkWrite}
   192      *          or its {@link SecurityManager#checkWrite(String) checkWrite}
   193      *          method denies write access to the file.
   193      *          method denies write access to the file.