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 TrackSectorDevice
TrackSectorDevice.Geometry -
Field Summary
Fields inherited from interface 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HintProvider
isAnyMethods inherited from interface 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
-