Class ShrinkItUtilities
- java.lang.Object
-
- com.webcodepro.applecommander.util.ShrinkItUtilities
-
public class ShrinkItUtilities extends java.lang.Object
Some higher-level utilities for dealing with a NuFX archive.
-
-
Constructor Summary
Constructors Constructor Description ShrinkItUtilities()
-
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 threadstatic 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.
-
-
-
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 readjava.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 readjava.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
-
-