private void setIndex() {
		int DataCounter, PBASCounter, PLOCCounter, PCONCounter, NumRecords, indexBase;
		byte[] RecNameArray = new byte[4];
		String RecName;

		DataCounter = 0;
		PBASCounter = 0;
		PLOCCounter = 0;
		PCONCounter = 0;

		indexBase = getIntAt(absIndexBase + macJunk);
		NumRecords = getIntAt(absIndexBase - 8 + macJunk);

		for (int record = 0; record <= NumRecords - 1; record++) {
			getSubArray(RecNameArray, (indexBase + (record * 28)));
			RecName = new String(RecNameArray);
			if (RecName.equals("FWO_"))
				FWO = indexBase + (record * 28) + 20;
			if (RecName.equals("DATA")) {
				++DataCounter;
				if (DataCounter == 9)
					DATA9 = indexBase + (record * 28) + 20;
				if (DataCounter == 10)
					DATA10 = indexBase + (record * 28) + 20;
				if (DataCounter == 11)
					DATA11 = indexBase + (record * 28) + 20;
				if (DataCounter == 12)
					DATA12 = indexBase + (record * 28) + 20;
			}
			if (RecName.equals("PBAS")) {
				++PBASCounter;
				if (PBASCounter == 2)
					PBAS2 = indexBase + (record * 28) + 20;
			}
			if (RecName.equals("PLOC")) {
				++PLOCCounter;
				if (PLOCCounter == 2)
					PLOC = indexBase + (record * 28) + 20;
			}
			if (RecName.equals("PCON")) {
				++PCONCounter;
				if (PCONCounter == 2)
					PCON = indexBase + (record * 28) + 20;
			}

		} //next record
		traceLength = getIntAt(DATA12 - 8);
		seqLength = getIntAt(PBAS2 - 4);
		PLOC = getIntAt(PLOC) + macJunk;
		DATA9 = getIntAt(DATA9) + macJunk;
		DATA10 = getIntAt(DATA10) + macJunk;
		DATA11 = getIntAt(DATA11) + macJunk;
		DATA12 = getIntAt(DATA12) + macJunk;
		PBAS2 = getIntAt(PBAS2) + macJunk;
		PCON = getIntAt(PCON) + macJunk;
	}
private void setIndex ( ) { int DataCounter , PBASCounter , PLOCCounter , PCONCounter , NumRecords , indexBase ; byte [ ] RecNameArray = new byte [ 4 ] ; String RecName ; DataCounter = 0 ; PBASCounter = 0 ; PLOCCounter = 0 ; PCONCounter = 0 ; indexBase = getIntAt ( absIndexBase + macJunk ) ; NumRecords = getIntAt ( absIndexBase - 8 + macJunk ) ; for ( int record = 0 ; record <= NumRecords - 1 ; record ++ ) { getSubArray ( RecNameArray , ( indexBase + ( record * 28 ) ) ) ; RecName = new String ( RecNameArray ) ; if ( RecName . equals ( "FWO_" ) ) FWO = indexBase + ( record * 28 ) + 20 ; if ( RecName . equals ( "DATA" ) ) { ++ DataCounter ; if ( DataCounter == 9 ) DATA9 = indexBase + ( record * 28 ) + 20 ; if ( DataCounter == 10 ) DATA10 = indexBase + ( record * 28 ) + 20 ; if ( DataCounter == 11 ) DATA11 = indexBase + ( record * 28 ) + 20 ; if ( DataCounter == 12 ) DATA12 = indexBase + ( record * 28 ) + 20 ; } if ( RecName . equals ( "PBAS" ) ) { ++ PBASCounter ; if ( PBASCounter == 2 ) PBAS2 = indexBase + ( record * 28 ) + 20 ; } if ( RecName . equals ( "PLOC" ) ) { ++ PLOCCounter ; if ( PLOCCounter == 2 ) PLOC = indexBase + ( record * 28 ) + 20 ; } if ( RecName . equals ( "PCON" ) ) { ++ PCONCounter ; if ( PCONCounter == 2 ) PCON = indexBase + ( record * 28 ) + 20 ; } } traceLength = getIntAt ( DATA12 - 8 ) ; seqLength = getIntAt ( PBAS2 - 4 ) ; PLOC = getIntAt ( PLOC ) + macJunk ; DATA9 = getIntAt ( DATA9 ) + macJunk ; DATA10 = getIntAt ( DATA10 ) + macJunk ; DATA11 = getIntAt ( DATA11 ) + macJunk ; DATA12 = getIntAt ( DATA12 ) + macJunk ; PBAS2 = getIntAt ( PBAS2 ) + macJunk ; PCON = getIntAt ( PCON ) + macJunk ; }
Sets up all of the initial pointers to the important records in TraceData.