public static InternalWorkbook createStubWorkbook(ExternSheetRecord[] externs,BoundSheetRecord[] bounds, SSTRecord sst) {List<org.apache.poi.hssf.record.Record> wbRecords = new ArrayList<>();if(bounds != null) {Collections.addAll(wbRecords, bounds);}if(sst != null) {wbRecords.add(sst);}if(externs != null) {wbRecords.add(SupBookRecord.createInternalReferences((short)externs.length));Collections.addAll(wbRecords, externs);}wbRecords.add(EOFRecord.instance);return InternalWorkbook.createWorkbook(wbRecords);}
public static InternalWorkbook CreateStubWorkbook(ExternSheetRecord[] externs,BoundSheetRecord[] bounds, SSTRecord sst){List<Record> wbRecords = new List<Record>();if (bounds != null){for (int i = 0; i < bounds.Length; i++){wbRecords.Add(bounds[i]);}}if (sst != null){wbRecords.Add(sst);}if (externs != null){wbRecords.Add(SupBookRecord.CreateInternalReferences((short)externs.Length));for (int i = 0; i < externs.Length; i++){wbRecords.Add(externs[i]);}}wbRecords.Add(EOFRecord.instance);return InternalWorkbook.CreateWorkbook(wbRecords);}