Class BlockUsage
java.lang.Object
org.applecommander.usage.DiskUsage
org.applecommander.usage.BlockUsage
- All Implemented Interfaces:
EventListener, ChangeListener<FileStore.FileStoreChangeEvent>, InformationProvider
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 ClassesNested classes/interfaces inherited from class DiskUsage
DiskUsage.UsageType -
Constructor Summary
ConstructorsConstructorDescriptionBlockUsage(BlockDevice.Geometry geometry, Consumer<BlockUsage.UsagePopulator> usageFn) -
Method Summary
Methods inherited from class DiskUsage
getBytesFree, getBytesUsed, getFree, getTotalBytes, getUsed, information
-
Constructor Details
-
BlockUsage
-
-
Method Details
-
getUsageCounts
- Specified by:
getUsageCountsin classDiskUsage
-
getTotal
-
populateUsage
public void populateUsage() -
getUsage
-
stateChanged
Description copied from interface:ChangeListenerWhen the state of an object has changed, this method is invoked on all listeners. Note that the baseEventObjecthas a source that needs to be cast to the proper interface.
-