All Downloads are FREE. Search and download functionalities are using the official Maven repository.

android.os.StatFs Maven / Gradle / Ivy

Go to download

The Firebase Java SDK is a pure java port of the Firebase Android SDK to run in clientside java environments such as the desktop.

The newest version!
package android.os;

import java.io.File;
import java.io.IOException;

public class StatFs {

    File file;

    public StatFs(String path) {
        file = new File(path);
    }

    public int getBlockSize() {
        try {
            return (int)file.toPath().getFileSystem().getFileStores().iterator().next().getBlockSize();
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy