java.lang.Object | |
↳ | android.os.StatFs |
Retrieve overall information about the space on a filesystem. This is a wrapper for Unix statvfs().
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new StatFs for looking at the stats of the filesystem at
path . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method was deprecated
in API level 18.
Use
getAvailableBlocksLong() instead.
| |||||||||||
The number of blocks that are free on the file system and available to
applications.
| |||||||||||
The number of bytes that are free on the file system and available to
applications.
| |||||||||||
This method was deprecated
in API level 18.
Use
getBlockCountLong() instead.
| |||||||||||
The total number of blocks on the file system.
| |||||||||||
This method was deprecated
in API level 18.
Use
getBlockSizeLong() instead.
| |||||||||||
The size, in bytes, of a block on the file system.
| |||||||||||
This method was deprecated
in API level 18.
Use
getFreeBlocksLong() instead.
| |||||||||||
The total number of blocks that are free on the file system, including
reserved blocks (that are not available to normal applications).
| |||||||||||
The number of bytes that are free on the file system, including reserved
blocks (that are not available to normal applications).
| |||||||||||
The total number of bytes supported by the file system.
| |||||||||||
Perform a restat of the file system referenced by this object.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Construct a new StatFs for looking at the stats of the filesystem at
path
. Upon construction, the stat of the file system will be
performed, and the values retrieved available from the methods on this
class.
path | path in the desired file system to stat. |
---|
The number of blocks that are free on the file system and available to
applications. This corresponds to the Unix statvfs.f_bavail
field.
The number of bytes that are free on the file system and available to applications.
The total number of blocks on the file system. This corresponds to the
Unix statvfs.f_blocks
field.
The size, in bytes, of a block on the file system. This corresponds to
the Unix statvfs.f_bsize
field.
The total number of blocks that are free on the file system, including
reserved blocks (that are not available to normal applications). This
corresponds to the Unix statvfs.f_bfree
field. Most applications
will want to use getAvailableBlocks()
instead.
The number of bytes that are free on the file system, including reserved
blocks (that are not available to normal applications). Most applications
will want to use getAvailableBytes()
instead.
The total number of bytes supported by the file system.
Perform a restat of the file system referenced by this object. This is the same as re-constructing the object with the same file system path, and the new stat values are available upon return.