Package libsidplay.components.c1541
Klasse DiskImage
java.lang.Object
libsidplay.components.c1541.DiskImage
Support of disk images.
- Autor:
- Ken Händel
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intTrack containing the directory.protected static final intMaximum tracks of a D64 disk that can be written.protected IExtendImageListener40 tracks disk image extension policy.protected RandomAccessFileRecently attached file handle.protected StringRecently attached file name.protected GCRGroup Code Recording support.static final intNr of tracks * max sectors per track.private static final intAbsolute max nr of sectors per track for supported disk formats.protected static final intMaximum tracks of a disk that can be accessed.static final intMinimum tracks of a disk.protected static final int[]Standard settings: Number of bytes per track in the speedzones 0-3.protected booleanAttach mode read-only.protected static final int[]Standard settings: Track (1-42) to a speedzone (0-3) map.protected intTrack count of this image.protected int[]Size of the GCR data of each track. -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungprotectedDiskImage(GCR gcr, String fileName, RandomAccessFile fd, boolean readOnly) -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract voidattach()Attach disk image to drive.static DiskImageAttach a disk image file to the drive.final voiddetach()Detach disk image from drive.abstract voidgcrDataWriteback(int track) Write back unsaved disk image data.booleangetDiskSector(int track, int sector, byte[] currSector) final booleanIs the disk image mounted read-only?final booleanfinal voidsetExtendImagePolicy(IExtendImageListener listener) Set policy how to deal with disks up to 40 tracks.
-
Felddetails
-
DIR_TRACK_1541
public static final int DIR_TRACK_1541Track containing the directory.- Siehe auch:
-
MIN_TRACKS_1541
public static final int MIN_TRACKS_1541Minimum tracks of a disk.- Siehe auch:
-
EXT_TRACKS_1541
protected static final int EXT_TRACKS_1541Maximum tracks of a D64 disk that can be written.- Siehe auch:
-
MAX_TRACKS_1541
protected static final int MAX_TRACKS_1541Maximum tracks of a disk that can be accessed.- Siehe auch:
-
RAW_TRACK_SIZE
protected static final int[] RAW_TRACK_SIZEStandard settings: Number of bytes per track in the speedzones 0-3. -
SPEED_MAP_1541
protected static final int[] SPEED_MAP_1541Standard settings: Track (1-42) to a speedzone (0-3) map. -
trackSize
protected int[] trackSizeSize of the GCR data of each track. -
fd
Recently attached file handle. -
fileName
Recently attached file name. -
readOnly
protected boolean readOnlyAttach mode read-only. -
tracks
protected int tracksTrack count of this image. -
gcr
Group Code Recording support. -
extendImageListener
40 tracks disk image extension policy. -
MAX_SECTORS_PER_TRACK
private static final int MAX_SECTORS_PER_TRACKAbsolute max nr of sectors per track for supported disk formats.- Siehe auch:
-
MAX_OVERALL_SECTORS
public static final int MAX_OVERALL_SECTORSNr of tracks * max sectors per track.- Siehe auch:
-
-
Konstruktordetails
-
DiskImage
-
-
Methodendetails
-
attach
Attach a disk image file to the drive.- Parameter:
gcr- group code recording supportfile- file of the image- Gibt zurück:
- disk image
- Löst aus:
IOException- disk image file could not be attached
-
attach
Attach disk image to drive.- Löst aus:
IOException- error reading disk image
-
detach
Detach disk image from drive.- Löst aus:
IOException- disk image file write error
-
setExtendImagePolicy
Set policy how to deal with disks up to 40 tracks.- Parameter:
listener- listener to ask about the policy
-
gcrDataWriteback
Write back unsaved disk image data.- Parameter:
track- dirty track- Löst aus:
IOException- disk image write error
-
isReadOnly
public final boolean isReadOnly()Is the disk image mounted read-only?- Gibt zurück:
- True if the mounted disk image is read-only; false otherwise.
-
getDiskSector
public boolean getDiskSector(int track, int sector, byte[] currSector) -
save
- Löst aus:
IOException
-