public class JsonExporter extends Object implements IntenzExporter
Constructor and Description |
---|
JsonExporter() |
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.EnzymeClass ec,
OutputStream os)
Exports an EC class as JSON.
|
void |
export(uk.ac.ebi.intenz.domain.enzyme.EnzymeEntry enzyme,
OutputStream os)
Exports just one enzyme.
|
void |
export(uk.ac.ebi.intenz.domain.enzyme.EnzymeSubclass esc,
OutputStream os)
Exports an EC subclass as JSON.
|
void |
export(uk.ac.ebi.intenz.domain.enzyme.EnzymeSubSubclass essc,
OutputStream os)
Exports an EC sub-subclass as JSON, including only its active EC
numbers (not deleted, not transferred).
|
void |
export(uk.ac.ebi.intenz.domain.enzyme.EnzymeSubSubclass essc,
OutputStream os,
boolean onlyActive)
Exports an EC sub-subclass as JSON.
|
void |
export(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeClass> ecs,
OutputStream os)
Turns a list of EC classes into a JSON array.
|
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.EnzymeSubSubclass essc, OutputStream os)
essc
- The EC sub-subclass.os
- The output stream to write to.public void export(uk.ac.ebi.intenz.domain.enzyme.EnzymeSubSubclass essc, OutputStream os, boolean onlyActive)
essc
- The EC sub-subclass.os
- The output stram to write to.onlyActive
- Do we want to export only the active (not
deleted, not transferred) EC numbers?public void export(uk.ac.ebi.intenz.domain.enzyme.EnzymeSubclass esc, OutputStream os)
esc
- The EC subclass.os
- The output stream to write to.public void export(uk.ac.ebi.intenz.domain.enzyme.EnzymeClass ec, OutputStream os)
ec
- The EC class.os
- The output stream to write to.public void export(List<uk.ac.ebi.intenz.domain.enzyme.EnzymeClass> ecs, OutputStream os)
ecs
- The EC classes.os
- The output stream to write to.Copyright © 2014 EMBL-EBI. All rights reserved.