# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Ctors | Methods | Inherited Methods

# StatFs

`public class StatFs`
`extends Object` ``

java.lang.Object
↳ | android.os.StatFs

Retrieve overall information about the space on a filesystem. This is a wrapper for Unix statvfs().

## Summary

### Public constructors
`StatFs(String path)` Construct a new StatFs for looking at the stats of the filesystem at `path`.

### Public methods
`int` | `getAvailableBlocks()` This method is 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()` This method is deprecated. Use `getBlockCountLong()` instead.
`long` | `getBlockCountLong()` The total number of blocks on the file system.
`int` | `getBlockSize()` This method is deprecated. Use `getBlockSizeLong()` instead.
`long` | `getBlockSizeLong()` The size, in bytes, of a block on the file system.
`int` | `getFreeBlocks()` This method is 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.

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Public constructors

### StatFs

    public StatFs (String path)

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.

Parameters
`path` | `String`: path in the desired file system to stat.

Throws
`IllegalArgumentException` | if the file system access fails

## Public methods

### getAvailableBlocks

    public int getAvailableBlocks ()

This method is deprecated.
Use `getAvailableBlocksLong()` instead.

Returns
`int` |

### getAvailableBlocksLong

    public long getAvailableBlocksLong ()

The number of blocks that are free on the file system and available to applications. This corresponds to the Unix `statvfs.f_bavail` field.

Returns
`long` |

### getAvailableBytes

    public long getAvailableBytes ()

The number of bytes that are free on the file system and available to applications.

Returns
`long` |

### getBlockCount

    public int getBlockCount ()

This method is deprecated.
Use `getBlockCountLong()` instead.

Returns
`int` |

### getBlockCountLong

    public long getBlockCountLong ()

The total number of blocks on the file system. This corresponds to the Unix `statvfs.f_blocks` field.

Returns
`long` |

### getBlockSize

    public int getBlockSize ()

This method is deprecated.
Use `getBlockSizeLong()` instead.

Returns
`int` |

### getBlockSizeLong

    public long getBlockSizeLong ()

The size, in bytes, of a block on the file system. This corresponds to the Unix `statvfs.f_frsize` field.

Returns
`long` |

### getFreeBlocks

    public int getFreeBlocks ()

This method is deprecated.
Use `getFreeBlocksLong()` instead.

Returns
`int` |

### getFreeBlocksLong

    public long getFreeBlocksLong ()

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.

Returns
`long` |

### getFreeBytes

    public long getFreeBytes ()

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.

Returns
`long` |

### getTotalBytes

    public long getTotalBytes ()

The total number of bytes supported by the file system.

Returns
`long` |

### restat

    public void restat (String path)

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.

Parameters
`path` | `String`

Throws
`IllegalArgumentException` | if the file system access fails

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*