Class ShrinkItUtilities


  • public class ShrinkItUtilities
    extends java.lang.Object
    Some higher-level utilities for dealing with a NuFX archive.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] readThread​(com.webcodepro.shrinkit.ThreadRecord thread)
      readThread Reads the data from a thread
      static byte[] unpackSHKFile​(java.lang.String fileName)
      Interpret a NuFile/NuFX/Shrinkit archive as a full disk image.
      static byte[] unpackSHKFile​(java.lang.String fileName, int startBlocks)
      Interpret a NuFile/NuFX/Shrinkit archive as a full disk image.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShrinkItUtilities

        public ShrinkItUtilities()
    • Method Detail

      • unpackSHKFile

        public static byte[] unpackSHKFile​(java.lang.String fileName)
                                    throws java.io.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:
        java.lang.IllegalArgumentException - if the filename is not able to be read
        java.io.IOException - the file has some malformed-ness about it
      • unpackSHKFile

        public static byte[] unpackSHKFile​(java.lang.String fileName,
                                           int startBlocks)
                                    throws java.io.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:
        java.lang.IllegalArgumentException - if the filename is not able to be read
        java.io.IOException - the file has some malformed-ness about it
      • readThread

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