NIO2 API

org.classpath.icedtea.java.nio.file.attribute
Interface FileStoreSpaceAttributes


public interface FileStoreSpaceAttributes

Space related attributes of a file store.

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

Method Summary
 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.


NIO2 API

Copyright © 2007, 2011, Oracle and/or its affiliates. All rights reserved.