public abstract class AbstractStreamingXmlExporter<E extends Entity> extends StreamingXmlDsl implements StreamingXmlExporter<E>, XmlExporter<E>
Constructor and Description |
---|
AbstractStreamingXmlExporter() |
Modifier and Type | Method and Description |
---|---|
protected List<Object> |
coerceList(Object value) |
void |
export(E unit,
OutputStream outputStream,
String langCode)
Export an item as an XML document.
|
Document |
export(E item,
String langCode)
Export an item as an XML document.
|
protected String |
resourceAsString(String resourceName) |
attribute, attributes, attrs, cData, characters, comment, doc, namespaces, root, tag, tag, tag, tag, tag, tag, tag, tag
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
export
public Document export(E item, String langCode) throws IOException
XmlExporter
export
in interface XmlExporter<E extends Entity>
item
- the itemlangCode
- the preferred language code when multiple
descriptions are availableIOException
public void export(E unit, OutputStream outputStream, String langCode) throws IOException, TransformerException
XmlExporter
export
in interface XmlExporter<E extends Entity>
unit
- the itemoutputStream
- the output stream to write to.langCode
- the preferred language code when multiple
descriptions are availableIOException
TransformerException
Copyright © 2018 The European Holocaust Research Infrastructure (EHRI). All rights reserved.