Package io.goobi.viewer.controller
Class FileSizeCalculator
java.lang.Object
io.goobi.viewer.controller.FileSizeCalculator
Utility class for determining and formatting file sizes. Provides methods to read the byte
size of a file from the filesystem and to format raw byte counts as human-readable strings
with appropriate units (B, KB, MB, etc.).
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatSize(long sizeInBytes) static longgetFileSize(Path path)
-
Method Details
-
getFileSize
- Throws:
IOException
-
formatSize
-