Class ShrinkItUtilities

java.lang.Object
com.webcodepro.applecommander.util.ShrinkItUtilities

public class ShrinkItUtilities extends Object
Some higher-level utilities for dealing with a NuFX archive.
  • Constructor Details

    • ShrinkItUtilities

      public ShrinkItUtilities()
  • Method Details

    • unpackSHKFile

      public static byte[] unpackSHKFile(String fileName) throws IOException
      Interpret a NuFile/NuFX/Shrinkit archive as a full disk image.
      Returns:
      byte[] buffer containing full disk of data; null if unable to read
      Throws:
      IllegalArgumentException - if the filename is not able to be read
      IOException - the file has some malformed-ness about it
    • unpackSHKFile

      public static byte[] unpackSHKFile(String fileName, int startBlocks) throws IOException
      Interpret a NuFile/NuFX/Shrinkit archive as a full disk image.
      Returns:
      byte[] buffer containing full disk of data; null if unable to read
      Throws:
      IllegalArgumentException - if the filename is not able to be read
      IOException - the file has some malformed-ness about it
    • readThread

      public static byte[] readThread(com.webcodepro.shrinkit.ThreadRecord thread) throws IOException
      readThread Reads the data from a thread
      Returns:
      byte[] buffer, possibly null
      Throws:
      IOException