Class OzDosFormatDisk
java.lang.Object
com.webcodepro.applecommander.storage.FormattedDisk
com.webcodepro.applecommander.storage.os.dos33.DosFormatDisk
com.webcodepro.applecommander.storage.os.dos33.OzDosFormatDisk
- All Implemented Interfaces:
DirectoryEntry
Manages a disk that is in OzDOS format.
This is basically DOS 3.3 except that the disk has two volumes of
each 400K. Logical disk one takes the first part of the block
(bytes $000-$0FF) while the second logical disk takes the second
part of a block (bytes $100-$1FF).
Created on Dec 16, 2002.
Created on Dec 16, 2002.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webcodepro.applecommander.storage.FormattedDisk
FormattedDisk.DiskInformation, FormattedDisk.DiskUsage, FormattedDisk.FileColumnHeader
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Use this indicator to work with logical disk #1.static final int
Use this indicator to work with logical disk #2.Fields inherited from class com.webcodepro.applecommander.storage.os.dos33.DosFormatDisk
CATALOG_TRACK, SECTOR_LOCATION_INDEX, TRACK_LOCATION_INDEX, TRACK_SECTOR_PAIRS, VTOC_SECTOR
Fields inherited from class com.webcodepro.applecommander.storage.FormattedDisk
FILE_DISPLAY_DETAIL, FILE_DISPLAY_NATIVE, FILE_DISPLAY_STANDARD
-
Constructor Summary
ConstructorsConstructorDescriptionOzDosFormatDisk
(String filename, ImageOrder imageOrder, int logicalOffset) Constructor for OzDosFormatDisk. -
Method Summary
Modifier and TypeMethodDescriptionstatic DosFormatDisk[]
create
(String filename, ImageOrder imageOrder) Create a OzDosFormatDisk.void
format()
Format the disk as OzDOS.protected int
getBlockNumber
(int track, int sector) Compute the block number.Answer with the name of this disk.int
Returns the logical disk number.byte[]
readSector
(int track, int sector) Retrieve the specified sector.void
writeSector
(int track, int sector, byte[] bytes) Write the specified sector.Methods inherited from class com.webcodepro.applecommander.storage.os.dos33.DosFormatDisk
canCreateDirectories, canCreateFile, canDeleteFile, canHaveDirectories, canReadFileData, canWriteFileData, changeImageOrder, checkRange, createDirectory, createFile, format, freeSectors, getBitmapDimensions, getBitmapLabels, getBitmapLength, getDiskGeometry, getDiskInformation, getDiskUsage, getFileColumnHeaders, getFileData, getFiles, getFiletypes, getFormat, getFreeMapBit, getFreeMapByte, getFreeSectors, getFreeSpace, getSectors, getSuggestedFilename, getSuggestedFiletype, getTotalSectors, getTracks, getUsedSectors, getUsedSpace, isSectorFree, isSectorUsed, needsAddress, readVtoc, setFileData, setFileData, setSectorFree, setSectorUsed, supportsDeletedFiles, supportsDiskMap, toNativeFiletype, toProdosFiletype, writeVtoc
Methods inherited from class com.webcodepro.applecommander.storage.FormattedDisk
getDirname, getFile, getFile, getFilename, getFormattedDisk, getImageOrder, getOrderName, getPhysicalSize, getSource, hasChanged, isNewImage, readBlock, resizeDiskImage, resizeDiskImage, save, saveAs, setDiskName, setFilename, setImageOrder, writeBlock, writeBootCode
-
Field Details
-
OZDOS_DISK_1
public static final int OZDOS_DISK_1Use this indicator to work with logical disk #1. It is essentially the offset into the block.- See Also:
-
OZDOS_DISK_2
public static final int OZDOS_DISK_2Use this indicator to work with logical disk #2. It is essentially the offset into the block.- See Also:
-
-
Constructor Details
-
OzDosFormatDisk
Constructor for OzDosFormatDisk.
-
-
Method Details
-
create
Create a OzDosFormatDisk. -
getDiskName
Answer with the name of this disk.- Overrides:
getDiskName
in classDosFormatDisk
- See Also:
-
getLogicalDiskNumber
public int getLogicalDiskNumber()Returns the logical disk number. This can be used to identify between disks when a format supports multiple logical volumes.- Overrides:
getLogicalDiskNumber
in classDosFormatDisk
-
format
public void format()Format the disk as OzDOS.- Overrides:
format
in classDosFormatDisk
- See Also:
-
readSector
Retrieve the specified sector.- Overrides:
readSector
in classFormattedDisk
- Throws:
IllegalArgumentException
-
writeSector
Write the specified sector.- Overrides:
writeSector
in classFormattedDisk
- Throws:
IllegalArgumentException
-
getBlockNumber
protected int getBlockNumber(int track, int sector) Compute the block number.
-