public void addListenerForAllRecords(HSSFListener lsnr) {short[] rectypes = RecordFactory.getAllKnownRecordSIDs();for (short rectype : rectypes) {addListener(lsnr, rectype);}}

public void AddListenerForAllRecords(IHSSFListener lsnr){short[] rectypes = RecordFactory.GetAllKnownRecordSIDs();for (int k = 0; k < rectypes.Length; k++){AddListener(lsnr, rectypes[k]);}}
