public class StatFs extends Object
Constructor and Description |
---|
StatFs(String path)
Construct a new StatFs for looking at the stats of the filesystem at
path . |
Modifier and Type | Method and Description |
---|---|
int |
getAvailableBlocks()
Deprecated.
Use
getAvailableBlocksLong() instead. |
long |
getAvailableBlocksLong()
The number of blocks that are free on the file system and available to
applications.
|
long |
getAvailableBytes()
The number of bytes that are free on the file system and available to
applications.
|
int |
getBlockCount()
Deprecated.
Use
getBlockCountLong() instead. |
long |
getBlockCountLong()
The total number of blocks on the file system.
|
int |
getBlockSize()
Deprecated.
Use
getBlockSizeLong() instead. |
long |
getBlockSizeLong()
The size, in bytes, of a block on the file system.
|
int |
getFreeBlocks()
Deprecated.
Use
getFreeBlocksLong() instead. |
long |
getFreeBlocksLong()
The total number of blocks that are free on the file system, including
reserved blocks (that are not available to normal applications).
|
long |
getFreeBytes()
The number of bytes that are free on the file system, including reserved
blocks (that are not available to normal applications).
|
long |
getTotalBytes()
The total number of bytes supported by the file system.
|
void |
restat(String path)
Perform a restat of the file system referenced by this object.
|
public StatFs(String path)
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.public void restat(String path)
@Deprecated public int getBlockSize()
getBlockSizeLong()
instead.public long getBlockSizeLong()
statvfs.f_bsize
field.@Deprecated public int getBlockCount()
getBlockCountLong()
instead.public long getBlockCountLong()
statvfs.f_blocks
field.@Deprecated public int getFreeBlocks()
getFreeBlocksLong()
instead.public long getFreeBlocksLong()
statvfs.f_bfree
field. Most applications
will want to use getAvailableBlocks()
instead.public long getFreeBytes()
getAvailableBytes()
instead.@Deprecated public int getAvailableBlocks()
getAvailableBlocksLong()
instead.public long getAvailableBlocksLong()
statvfs.f_bavail
field.public long getAvailableBytes()
public long getTotalBytes()