Class BlockUsage
java.lang.Object
org.applecommander.usage.DiskUsage
org.applecommander.usage.BlockUsage
Provides block-level usage information. Note that block size can vary from 256 bytes (RDOS) to
512 bytes (Pascal, ProDOS) to 1024 bytes (CP/M), so it must be passed in on the constructor.
-
Nested Class Summary
Nested classes/interfaces inherited from class DiskUsage
DiskUsage.UsageType -
Constructor Summary
ConstructorsConstructorDescriptionBlockUsage(BlockDevice.Geometry geometry, Function<Integer, DiskUsage.UsageType> usageFn) -
Method Summary
Methods inherited from class DiskUsage
getBytesFree, getBytesUsed, getFree, getTotalBytes, getUsed
-
Constructor Details
-
BlockUsage
-
-
Method Details
-
getUsageCounts
- Specified by:
getUsageCountsin classDiskUsage
-
getTotal
-
getUsage
-