Package org.applecommander.device
Class BlockToTrackSectorAdapter
java.lang.Object
org.applecommander.device.BlockToTrackSectorAdapter
- All Implemented Interfaces:
CapabilityProvider,Device,TrackSectorDevice,HintProvider,Container
Adapts a
BlockDevice to a TrackSectorDevice.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.applecommander.device.TrackSectorDevice
TrackSectorDevice.Geometry -
Field Summary
Fields inherited from interface org.applecommander.device.TrackSectorDevice
SECTOR_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBlockToTrackSectorAdapter(BlockDevice device, TrackSectorToBlockStrategy strategy) -
Method Summary
Modifier and TypeMethodDescriptionbooleancan(Capability capability) <T> Optional<T> booleanreadSector(int track, int sector) voidwriteSector(int track, int sector, DataBuffer data) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.applecommander.hint.HintProvider
isAnyMethods inherited from interface org.applecommander.device.TrackSectorDevice
format
-
Constructor Details
-
BlockToTrackSectorAdapter
-
-
Method Details
-
get
-
is
- Specified by:
isin interfaceHintProvider
-
can
- Specified by:
canin interfaceCapabilityProvider
-
getGeometry
- Specified by:
getGeometryin interfaceTrackSectorDevice
-
readSector
- Specified by:
readSectorin interfaceTrackSectorDevice
-
writeSector
- Specified by:
writeSectorin interfaceTrackSectorDevice
-