diff --git a/src/com/webcodepro/shrinkit/HeaderBlock.java b/src/com/webcodepro/shrinkit/HeaderBlock.java index 940c136..26ca778 100644 --- a/src/com/webcodepro/shrinkit/HeaderBlock.java +++ b/src/com/webcodepro/shrinkit/HeaderBlock.java @@ -5,6 +5,8 @@ import java.util.ArrayList; import java.util.Date; import java.util.List; +import com.webcodepro.shrinkit.io.LittleEndianByteInputStream; + /** * The Header Block contains information and content * about a single entry (be it a file or disk image). @@ -40,7 +42,7 @@ public class HeaderBlock { * Create the Header Block. This is done dynamically since * the Header Block size varies significantly. */ - public HeaderBlock(ByteSource bs) throws IOException { + public HeaderBlock(LittleEndianByteInputStream bs) throws IOException { bs.checkNuFxId(); headerCrc = bs.readWord(); attribCount = bs.readWord(); @@ -81,7 +83,7 @@ public class HeaderBlock { * Read in all data threads. All ThreadRecords are read and then * each thread's data is read (per NuFX spec). */ - public void readThreads(ByteSource bs) throws IOException { + public void readThreads(LittleEndianByteInputStream bs) throws IOException { threads = new ArrayList(); for (long l=0; l(); for (int i=0; i