android.os.StatFs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firebase-java-sdk Show documentation
Show all versions of firebase-java-sdk Show documentation
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