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 { public static final String VERSION; static { VERSION = NuFileArchive.class.getPackage().getImplementationVersion(); } private MasterHeaderBlock master; private List headers; private long totalSize = 0; /** * Need to enumerate some basic sub-types of archives. */ public static final int NUFILE_ARCHIVE = 1; public static final int NUFX_ARCHIVE = 2; public static final int BXY_ARCHIVE = 3; /** * 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; }}