Please note that this documentation is not final and is subject to change.

Java™ Platform
Standard Ed. 7

DRAFT ea-b89

java.nio.file.attribute
Interface FileStoreSpaceAttributeView

All Superinterfaces:
AttributeView, FileStoreAttributeView

public interface FileStoreSpaceAttributeView
extends FileStoreAttributeView

A file store attribute view that supports reading of space attributes.

Where dynamic access to file attributes is required, the attributes supported by this attribute view have the following names and types:

Name Type
"totalSpace" Long
"usableSpace" Long
"unallocatedSpace" Long

The getAttribute method may be used to read any of these attributes.

Since:
1.7

Method Summary
Modifier and Type Method and Description
 String name()
          Returns the name of the attribute view.
 FileStoreSpaceAttributes readAttributes()
          Reads the disk space attributes as a bulk operation.
 

Method Detail

name

String name()
Returns the name of the attribute view. Attribute views of this type have the name "space".

Specified by:
name in interface AttributeView

readAttributes

FileStoreSpaceAttributes readAttributes()
                                        throws IOException
Reads the disk space attributes as a bulk operation.

It is file system specific if all attributes are read as an atomic operation with respect to other file system operations.

Returns:
The disk space attributes
Throws:
IOException - If an I/O error occurs

Java™ Platform
Standard Ed. 7

DRAFT ea-b89

Submit a bug or feature

Copyright 2010 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.