protected void BuildIndexHeader(int Count,int Offsize,int First){
  OutputList.addLast(new UInt16Item((char)Count));
  OutputList.addLast(new UInt8Item((char)Offsize));
switch (Offsize) {
case 1:
    OutputList.addLast(new UInt8Item((char)First));
  break;
case 2:
OutputList.addLast(new UInt16Item((char)First));
break;
case 3:
OutputList.addLast(new UInt24Item((char)First));
break;
case 4:
OutputList.addLast(new UInt32Item((char)First));
break;
default :
break;
}
}

protected void BuildIndexHeader ( int Count , int Offsize , int First ) { OutputList . addLast ( new UInt16Item ( ( char ) Count ) ) ; OutputList . addLast ( new UInt8Item ( ( char ) Offsize ) ) ; switch ( Offsize ) { case 1 : OutputList . addLast ( new UInt8Item ( ( char ) First ) ) ; break ; case 2 : OutputList . addLast ( new UInt16Item ( ( char ) First ) ) ; break ; case 3 : OutputList . addLast ( new UInt24Item ( ( char ) First ) ) ; break ; case 4 : OutputList . addLast ( new UInt32Item ( ( char ) First ) ) ; break ; default : break ; } }
function build the header of an index
