public class XmlExporter extends Object implements IntenzExporter
CDATA
sections.setFlavour
method.export
methods are synchronized in order to avoid changing
the flavour in the middle of a dump.Modifier and Type | Class and Description |
---|---|
static class |
XmlExporter.Flavour |
Constructor and Description |
---|
XmlExporter() |
Modifier and Type | Method and Description |
---|---|
void |
export(Collection<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> enzymes,
OutputStream os)
Exports a collection of enzymes.
|
void |
export(uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry enzyme,
OutputStream os)
Exports just one enzyme.
|
void |
export(uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry entry,
String release,
String relDate,
OutputStream os)
Deprecated.
Use the method from the interface
IntenzExporter.export(uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry,
java.io.OutputStream) instead, using the setters for release date
and number beforehand. |
void |
export(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> entries,
String release,
String relDate,
OutputStream os)
Deprecated.
Use the method from the interface
IntenzExporter.export(java.util.Collection, java.io.OutputStream)
instead, using the setters for release date and number beforehand. |
void |
setDescriptions(Map<String,Object> descriptions) |
void |
setFlavour(XmlExporter.Flavour flavour) |
void |
setReleaseDate(String releaseDate) |
void |
setReleaseNumber(int releaseNumber) |
public XmlExporter() throws javax.xml.bind.JAXBException, SAXException
public void setReleaseNumber(int releaseNumber)
public void setReleaseDate(String releaseDate)
public void setFlavour(XmlExporter.Flavour flavour)
public void export(Collection<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> enzymes, OutputStream os) throws IOException
IntenzExporter
export
in interface IntenzExporter
enzymes
- the enzymes to export.os
- the output stream to write the export to.IOException
public void export(uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry enzyme, OutputStream os) throws IOException
IntenzExporter
export
in interface IntenzExporter
enzyme
- the enzyme to export.os
- the output stream to write the entry to.IOException
public void export(uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry entry, String release, String relDate, OutputStream os) throws Exception
IntenzExporter.export(uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry,
java.io.OutputStream)
instead, using the setters for release date
and number beforehand.entry
- the enzyme entry to export.release
- the IntEnz release number to mention in the exported XML.relDate
- the IntEnz release date to mention in the exported XML.os
- the OutputStream to write the XML to.Exception
public void export(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry> entries, String release, String relDate, OutputStream os) throws Exception
IntenzExporter.export(java.util.Collection, java.io.OutputStream)
instead, using the setters for release date and number beforehand.entries
- the entries to export.release
- the IntEnz release number to mention in the exported XML.relDate
- the IntEnz release date to mention in the exported XML.os
- the OutputStream to write the XML to.Exception
Copyright © 2014 EMBL-EBI. All rights reserved.