1 package uk.ac.ebi.intenz.tools.export;
2
3 import java.io.IOException;
4 import java.io.OutputStream;
5 import java.util.Collection;
6
7 import uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry;
8
9 /**
10 * Interface to export IntEnz objects.
11 * @author rafa
12 * @since 1.3.18
13 */
14 public interface IntenzExporter {
15
16 /**
17 * Exports a collection of enzymes.
18 * @param enzymes the enzymes to export.
19 * @param os the output stream to write the export to.
20 * @throws IOException
21 */
22 void export(Collection<EnzymeEntry> enzymes, OutputStream os)
23 throws IOException;
24
25 /**
26 * Exports just one enzyme.
27 * @param enzyme the enzyme to export.
28 * @param os the output stream to write the entry to.
29 * @throws IOException
30 */
31 void export(EnzymeEntry enzyme, OutputStream os) throws IOException;
32 }