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