java.nio.file.attribute
Interface FileStoreSpaceAttributeView

All Superinterfaces:
AttributeView, FileStoreAttributeView

public interface FileStoreSpaceAttributeView
extends FileStoreAttributeView

Disabled: no SafeJ information.

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
 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()
Class is disabled.

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
Class is disabled.

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