Class DosOrderedTrackSectorDevice
java.lang.Object
org.applecommander.device.DosOrderedTrackSectorDevice
- 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
ConstructorsConstructorDescriptionDosOrderedTrackSectorDevice(Source source) DosOrderedTrackSectorDevice(Source source, Hint orderHint) -
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.booleanreadSector(int track, int sector) Read a single sector from 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, performRange, readRange, writeRange
-
Constructor Details
-
DosOrderedTrackSectorDevice
-
DosOrderedTrackSectorDevice
-
-
Method Details
-
get
-
is
- Specified by:
isin interfaceHintProvider
-
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
-
readSector
Description copied from interface:TrackSectorDeviceRead a single sector from the disk.- Specified by:
readSectorin interfaceTrackSectorDevice
-
writeSector
Description copied from interface:TrackSectorDeviceWrite a single sector to the disk.- Specified by:
writeSectorin interfaceTrackSectorDevice
-
calculateOffset
public int calculateOffset(int track, int sector) -
information
- Specified by:
informationin interfaceInformationProvider
-