package com.webcodepro.shrinkit; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import com.webcodepro.shrinkit.io.LittleEndianByteInputStream; /** * Basic reading of a NuFX archive. * * @author robgreene@users.sourceforge.net */ public class NuFileArchive { private MasterHeaderBlock master; private List headers; /** * Read in the NuFile/NuFX/Shrinkit archive. */ public NuFileArchive(InputStream inputStream) throws IOException { LittleEndianByteInputStream bs = new LittleEndianByteInputStream(inputStream); master = new MasterHeaderBlock(bs); headers = new ArrayList(); for (int i=0; i getHeaderBlocks() { return headers; } }