Class DiskCopyImage

java.lang.Object
org.applecommander.image.DiskCopyImage
All Implemented Interfaces:
CapabilityProvider, HintProvider, Source, Container

public class DiskCopyImage extends Object implements Source
  • Field Details

  • Constructor Details

    • DiskCopyImage

      public DiskCopyImage(Source source)
  • Method Details

    • checksum

      public int checksum(int offset, int requestedLength)
      Calculate the expected checksum. Note that we try to be careful about length as there are DiskCopy images that appear to have been truncated over time. Since the checksums should NOT match, presumably the user may notice that detail!
    • can

      public boolean can(Capability capability)
      Specified by:
      can in interface CapabilityProvider
    • get

      public <T> Optional<T> get(Class<T> iface)
      Specified by:
      get in interface Container
    • is

      public boolean is(Hint hint)
      Specified by:
      is in interface HintProvider
    • getInfo

      public DiskCopyImage.Info getInfo()
    • getSize

      public int getSize()
      Specified by:
      getSize in interface Source
    • getName

      public String getName()
      Specified by:
      getName in interface Source
    • readAllBytes

      public DataBuffer readAllBytes()
      Specified by:
      readAllBytes in interface Source
    • readBytes

      public DataBuffer readBytes(int offset, int length)
      Specified by:
      readBytes in interface Source
    • writeBytes

      public void writeBytes(int offset, DataBuffer data)
      Specified by:
      writeBytes in interface Source
    • hasChanged

      public boolean hasChanged()
      Specified by:
      hasChanged in interface Source
    • clearChanges

      public void clearChanges()
      Specified by:
      clearChanges in interface Source
    • information

      public List<Information> information()
      Specified by:
      information in interface Source