Klasse G64

Bekannte direkte Unterklassen:
NIB

public class G64 extends DiskImage
Autor:
Ken Händel
  • Felddetails

    • IMAGE_HEADER

      static final String IMAGE_HEADER
      Expected G64 image header.
      Siehe auch:
    • BEGIN_TRACK_DATA_OFFSETS

      private static final int BEGIN_TRACK_DATA_OFFSETS
      GCR image file offset, where the track data offsets start.
      Siehe auch:
    • speedZoneMap

      private int[] speedZoneMap
      Speed zone (0..3) of the disk image (for every track and every byte).
  • Konstruktordetails

  • Methodendetails

    • attach

      protected void attach() throws IOException
      Read image in G64 format and fill this GCR data and speed zone data.
      Angegeben von:
      attach in Klasse DiskImage
      Löst aus:
      IOException - disk image file could not be attached
    • gcrDataWriteback

      public void gcrDataWriteback(int track) throws IOException
      Write GCR data back to image.
      Angegeben von:
      gcrDataWriteback in Klasse DiskImage
      Parameter:
      track - dirty track
      Löst aus:
      IOException - error writing data to image
    • flip

      private int flip(int value)
      Reverses endianness of 32-bit integer.
      Parameter:
      value - value to flip
      Gibt zurück:
      value with endianness flipped
    • readIntLittleEndian

      private void readIntLittleEndian(RandomAccessFile fd, int[] buf, int num) throws IOException
      Reads integer little-endian integers from a file (at the current position).
      Parameter:
      fd - file handle
      buf - target buffer containing the integer values of the file
      num - number of integers to read
      Löst aus:
      IOException - read error occurred