Class UniDosFormatDisk

  • All Implemented Interfaces:
    DirectoryEntry

    public class UniDosFormatDisk
    extends DosFormatDisk
    Manages a disk that is in UniDOS format. This is basically DOS 3.3 except that the disk has two volumes of each 400K.
    Created on Dec 13, 2002.
    • Field Detail

      • UNIDOS_DISK_1

        public static final int UNIDOS_DISK_1
        Use this indicator to work with logical disk #1. It is essentially the track offset into the disk image.
        See Also:
        Constant Field Values
      • UNIDOS_DISK_2

        public static final int UNIDOS_DISK_2
        Use this indicator to work with logical disk #2. It is essentially the track offset into the disk image.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UniDosFormatDisk

        public UniDosFormatDisk​(java.lang.String filename,
                                ImageOrder imageOrder,
                                int logicalOffset)
        Constructor for UniDosFormatDisk.
    • Method Detail

      • create

        public static DosFormatDisk[] create​(java.lang.String filename,
                                             ImageOrder imageOrder)
        Create a UniDosFormatDisk.
      • 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 class DosFormatDisk
      • readSector

        public byte[] readSector​(int track,
                                 int sector)
                          throws java.lang.IllegalArgumentException
        Retrieve the specified sector.
        Overrides:
        readSector in class Disk
        Throws:
        java.lang.IllegalArgumentException
      • writeSector

        public void writeSector​(int track,
                                int sector,
                                byte[] bytes)
                         throws java.lang.IllegalArgumentException
        Write the specified sector.
        Overrides:
        writeSector in class Disk
        Throws:
        java.lang.IllegalArgumentException