FileStore
public
abstract
class
FileStore
extends Object
| java.lang.Object | |
| ↳ | java.nio.file.FileStore |
Storage for files. A FileStore represents a storage pool, device,
partition, volume, concrete file system or other implementation specific means
of file storage. The FileStore for where a file is stored is obtained
by invoking the getFileStore method, or all file
stores can be enumerated by invoking the getFileStores method.
In addition to the methods defined by this class, a file store may support
one or more FileStoreAttributeView classes
that provide a read-only or updatable view of a set of file store attributes.
Summary
Protected constructors | |
|---|---|
FileStore()
Initializes a new instance of this class. |
|
Public methods | |
|---|---|
abstract
Object
|
getAttribute(String attribute)
Reads the value of a file store attribute. |
long
|
getBlockSize()
Returns the number of bytes per block in this file store. |
abstract
<V extends FileStoreAttributeView>
V
|
getFileStoreAttributeView(Class<V> type)
Returns a |
abstract
long
|
getTotalSpace()
Returns the size, in bytes, of the file store. |
abstract
long
|
getUnallocatedSpace()
Returns the number of unallocated bytes in the file store. |
abstract
long
|
getUsableSpace()
Returns the number of bytes available to this Java virtual machine on the file store. |
abstract
boolean
|
isReadOnly()
Tells whether this file store is read-only. |
abstract
String
|
name()
Returns the name of this file store. |
abstract
boolean
|
supportsFileAttributeView(String name)
Tells whether or not this file store supports the file attributes identified by the given file attribute view. |
abstract
boolean
|
supportsFileAttributeView(Class<? extends FileAttributeView> type)
Tells whether or not this file store supports the file attributes identified by the given file attribute view. |
abstract
String
|
type()
Returns the type of this file store. |
Inherited methods | |
|---|---|