Class ProdosOrder


  • public class ProdosOrder
    extends ImageOrder
    Supports disk images stored in ProDOS physical order.

    • Constructor Detail

      • ProdosOrder

        public ProdosOrder​(ByteArrayImageLayout diskImageManager)
        Construct a ProdosOrder.
    • Method Detail

      • isBlockDevice

        public boolean isBlockDevice()
        Indicates that this device is block ordered.
        Specified by:
        isBlockDevice in class ImageOrder
      • isTrackAndSectorDevice

        public boolean isTrackAndSectorDevice()
        Indicates that this device is track and sector ordered.
        Specified by:
        isTrackAndSectorDevice in class ImageOrder
      • readBlock

        public byte[] readBlock​(int block)
        Read the block from the disk image. Note: Defined in terms of reading sectors.
        Specified by:
        readBlock in class ImageOrder
      • writeBlock

        public void writeBlock​(int block,
                               byte[] data)
        Write the block to the disk image. Note: Defined in terms of reading sectors.
        Specified by:
        writeBlock in class ImageOrder
      • readSector

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

        public void writeSector​(int track,
                                int sector,
                                byte[] bytes)
                         throws java.lang.IllegalArgumentException
        Write the specified sector.
        Specified by:
        writeSector in class ImageOrder
        Throws:
        java.lang.IllegalArgumentException
      • getName

        public java.lang.String getName()
        Return the name of this image order.
        Specified by:
        getName in class ImageOrder