use of org.nextprot.api.web.service.impl.writer.EntryStreamWriter in project nextprot-api by calipho-sib.
the class StreamEntryServiceImpl method streamEntry.
@Override
public void streamEntry(String accession, NextprotMediaType format, OutputStream os, String description) throws IOException {
EntryStreamWriter writer = newAutoCloseableWriter(format, "entry", os);
writer.write(Collections.singletonList(accession), createInfos(description));
}
use of org.nextprot.api.web.service.impl.writer.EntryStreamWriter in project nextprot-api by calipho-sib.
the class StreamEntryServiceImpl method streamEntries.
@Override
public void streamEntries(Collection<String> accessions, NextprotMediaType format, String viewName, OutputStream os, String description) throws IOException {
EntryStreamWriter writer = newAutoCloseableWriter(format, viewName, os);
writer.write(accessions, createInfos(description));
}
Aggregations