use of org.nextprot.api.core.service.export.format.EntryBlock in project nextprot-api by calipho-sib.
the class EntryXLSWriter method writeEntry.
@Override
protected void writeEntry(String entryName) throws IOException {
EntryConfig config = EntryConfig.newConfig(entryName);
for (EntryBlock block : entryDataProvider.getSourceEntryBlocks()) {
config.withBlock(block);
}
Entry entry = entryBuilderService.build(config);
for (Record record : entryDataProvider.getRecords(entry)) {
HSSFRow row = worksheet.createRow(rowIndex);
writeRecord(row, record);
rowIndex++;
}
}
Aggregations