Class OrderedTrackSectorDevice
java.lang.Object
org.applecommander.device.OrderedTrackSectorDevice
- All Implemented Interfaces:
CapabilityProvider, Device, TrackSectorDevice, HintProvider, Container, InformationProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface TrackSectorDevice
TrackSectorDevice.Geometry -
Field Summary
Fields inherited from interface TrackSectorDevice
SECTOR_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcalculateOffset(int track, int sector) booleancan(Capability capability) Helps identify capabilities of the existing component.<T> Optional<T> Get information that describes the disk geometry.Get the sector order.readRange(int track, int sector, int totalSectors) Read a range of sectors.voidreadSector(int track, int sector, int offset, DataBuffer data) Read a single sector from the disk into the givenDataBufferat the given offset.voidwriteRange(int track, int sector, DataBuffer data) Write a range of sectors to the disk.voidwriteSector(int track, int sector, DataBuffer data) Write a single sector to the disk.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
calculateRequiredSectors, format, is, performRange, readSector, request, sizeBuffer
-
Constructor Details
-
OrderedTrackSectorDevice
-
-
Method Details
-
get
-
can
Description copied from interface:CapabilityProviderHelps identify capabilities of the existing component.- Specified by:
canin interfaceCapabilityProvider
-
getGeometry
Description copied from interface:TrackSectorDeviceGet information that describes the disk geometry.- Specified by:
getGeometryin interfaceTrackSectorDevice
-
getSectorOrder
Get the sector order.- Specified by:
getSectorOrderin interfaceTrackSectorDevice
-
readSector
Read a single sector from the disk into the givenDataBufferat the given offset.- Specified by:
readSectorin interfaceTrackSectorDevice
-
readRange
Read a range of sectors.- Specified by:
readRangein interfaceTrackSectorDevice
-
writeSector
Description copied from interface:TrackSectorDeviceWrite a single sector to the disk.- Specified by:
writeSectorin interfaceTrackSectorDevice
-
writeRange
Write a range of sectors to the disk. Note that the data buffer is modified to be a multiple of sector size.- Specified by:
writeRangein interfaceTrackSectorDevice
-
calculateOffset
public int calculateOffset(int track, int sector) -
information
- Specified by:
informationin interfaceInformationProvider
-