Package org.applecommander.device
Interface TrackSectorDevice
- All Superinterfaces:
CapabilityProvider,Container,Device,HintProvider
- All Known Implementing Classes:
BlockToTrackSectorAdapter,DosOrderedTrackSectorDevice,SkewedTrackSectorDevice,TrackSectorNibbleDevice
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidformat()Format a disk.readSector(int track, int sector) voidwriteSector(int track, int sector, DataBuffer data) Methods inherited from interface org.applecommander.capability.CapabilityProvider
canMethods inherited from interface org.applecommander.hint.HintProvider
is, isAny
-
Field Details
-
SECTOR_SIZE
static final int SECTOR_SIZE- See Also:
-
-
Method Details
-
getGeometry
TrackSectorDevice.Geometry getGeometry() -
readSector
-
writeSector
-
format
default void format()Format a disk. For most disks, this is simply a wipe to all zeros. If this disk has extended format (such as nibble formats), this is the opportunity to write out that format. NOTE: Adapter type devices have to be cautious about what device is responsible about formatting. For example, a UniDOS disk is 2x400K volumes on an 800K block device -- if they defer formatting to the 800K block device, a format on one volume also wipes out the other (in this case, do not defer to the "parent"). However, if the block adapter contains a nibble-based TrackSectorDevice, the actual formatting needs to get to the nibble device so it can lay down sector markers and the rest of the track structure.
-