Class ShrinkItUtilities
java.lang.Object
com.webcodepro.applecommander.util.ShrinkItUtilities
Some higher-level utilities for dealing with a NuFX archive.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
readThread
(com.webcodepro.shrinkit.ThreadRecord thread) readThread Reads the data from a threadstatic byte[]
unpackSHKFile
(String fileName) Interpret a NuFile/NuFX/Shrinkit archive as a full disk image.static byte[]
unpackSHKFile
(String fileName, int startBlocks) Interpret a NuFile/NuFX/Shrinkit archive as a full disk image.
-
Constructor Details
-
ShrinkItUtilities
public ShrinkItUtilities()
-
-
Method Details
-
unpackSHKFile
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 readIOException
- the file has some malformed-ness about it
-
unpackSHKFile
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 readIOException
- the file has some malformed-ness about it
-
readThread
readThread Reads the data from a thread- Returns:
- byte[] buffer, possibly null
- Throws:
IOException
-