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 FileStoreSpaceAttributes


public interface FileStoreSpaceAttributes

Space related attributes of a file store.

Since:
1.7
See Also:
Attributes.readFileStoreSpaceAttributes(java.nio.file.FileStore)

Method Summary
Modifier and Type Method and Description
 long totalSpace()
          Returns the size, in bytes, of the file store.
 long unallocatedSpace()
          Returns the number of unallocated bytes in the file store.
 long usableSpace()
          Returns the number of bytes available to this Java virtual machine on the file store.
 

Method Detail

totalSpace

long totalSpace()
Returns the size, in bytes, of the file store.


usableSpace

long usableSpace()
Returns the number of bytes available to this Java virtual machine on the file store.

The returned number of available bytes is a hint, but not a guarantee, that it is possible to use most or any of these bytes. The number of usable bytes is most likely to be accurate immediately after the space attributes are obtained. It is likely to be made inaccurate by any external I/O operations including those made on the system outside of this Java virtual machine.


unallocatedSpace

long unallocatedSpace()
Returns the number of unallocated bytes in the file store.

The returned number of unallocated bytes is a hint, but not a guarantee, that it is possible to use most or any of these bytes. The number of unallocated bytes is most likely to be accurate immediately after the space attributes are obtained. It is likely to be made inaccurate by any external I/O operations including those made on the system outside of this virtual machine.


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.