Spec-Zone .ru
спецификации, руководства, описания, API
Please note that the specifications and other information contained herein are not final and are subject to change. The information is being made available to you solely for purpose of evaluation.

Java™ Platform
Standard Ed. 7

DRAFT ea-b118

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-b118

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2010, Oracle Corporation. All rights reserved.
DRAFT ea-b118

Scripting on this page tracks web page traffic, but does not change the content in any way.