Package org.applecommander.device
Class BlockToTrackSectorAdapter
java.lang.Object
org.applecommander.device.BlockToTrackSectorAdapter
- All Implemented Interfaces:
CapabilityProvider
,TrackSectorDevice
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 TypeMethodDescriptionboolean
can
(Capability capability) readSector
(int track, int sector) void
writeSector
(int track, int sector, DataBuffer data)
-
Constructor Details
-
BlockToTrackSectorAdapter
-
-
Method Details
-
can
- Specified by:
can
in interfaceCapabilityProvider
-
getGeometry
- Specified by:
getGeometry
in interfaceTrackSectorDevice
-
readSector
- Specified by:
readSector
in interfaceTrackSectorDevice
-
writeSector
- Specified by:
writeSector
in interfaceTrackSectorDevice
-