1 package eu.ehri.project.exporters.ead;
2
3 import eu.ehri.project.exporters.xml.XmlExporter;
4 import eu.ehri.project.models.DocumentaryUnit;
5 import org.w3c.dom.Document;
6
7 import javax.xml.transform.TransformerException;
8 import java.io.IOException;
9 import java.io.OutputStream;
10
11
12
13
14 public interface EadExporter extends XmlExporter<DocumentaryUnit> {
15
16
17
18
19
20
21
22
23
24 void export(DocumentaryUnit unit,
25 OutputStream outputStream, String langCode) throws IOException, TransformerException;
26
27
28
29
30
31
32
33
34
35 Document export(DocumentaryUnit unit, String langCode) throws IOException;
36 }