src/share/classes/sun/nio/fs/DynamicFileAttributeView.java

Print this page




  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.nio.fs;
  27 
  28 import java.util.Map;
  29 import java.io.IOException;
  30 
  31 /**
  32  * Implemented by FileAttributeView implementations to support access to
  33  * attributes by names.
  34  */
  35 
  36 interface DynamicFileAttributeView {
  37     /**
  38      * Reads the value of an attribute.
  39      */
  40     Object getAttribute(String attribute) throws IOException;
  41 
  42     /**
  43      * Sets/updates the value of an attribute.
  44      */
  45     void setAttribute(String attribute, Object value) throws IOException;
  46 
  47     /**
  48      * Reads a set of file attributes as a bulk operation.
  49      */
  50     Map<String,?> readAttributes(String[] attributes) throws IOException;
  51 }


  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.nio.fs;
  27 
  28 import java.util.Map;
  29 import java.io.IOException;
  30 
  31 /**
  32  * Implemented by FileAttributeView implementations to support access to
  33  * attributes by names.
  34  */
  35 
  36 interface DynamicFileAttributeView {
  37     /**





  38      * Sets/updates the value of an attribute.
  39      */
  40     void setAttribute(String attribute, Object value) throws IOException;
  41 
  42     /**
  43      * Reads a set of file attributes as a bulk operation.
  44      */
  45     Map<String,Object> readAttributes(String[] attributes) throws IOException;
  46 }