code: protected void BuildIndexHeader(int Count,int Offsize,int First)
  	{
  		// Add the count field
  		OutputList.addLast(new UInt16Item((char)Count)); // count
  		// Add the offsize field
  		OutputList.addLast(new UInt8Item((char)Offsize)); // offSize
  		// Add the first offset according to the offsize
          switch(Offsize){
          	case 1:
          		OutputList.addLast(new UInt8Item((char)First)); // first offset
          		break;
          	case 2:
          		OutputList.addLast(new UInt16Item((char)First)); // first offset
          		break;
          	case 3:
          		OutputList.addLast(new UInt24Item((char)First)); // first offset
          		break;
          	case 4:
          		OutputList.addLast(new UInt32Item((char)First)); // first offset
          		break;
      		default:
      			break;	
          }
  	}
docs: Function Build the header of an index
  @param Count the count field of the index
  @param Offsize the offsize field of the index
  @param First the first offset of the index