Package psidev.psi.mi.jami.json.nary
Class LightMIJsonWriter
- java.lang.Object
-
- psidev.psi.mi.jami.json.nary.AbstractMIJsonWriter<Interaction>
-
- psidev.psi.mi.jami.json.nary.LightMIJsonWriter
-
- All Implemented Interfaces:
InteractionWriter<Interaction>
public class LightMIJsonWriter extends AbstractMIJsonWriter<Interaction>
Abstract JSON writer for interactions (n-ary json format)- Since:
03/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description LightMIJsonWriter()
Constructor for LightMIJsonWriter.LightMIJsonWriter(File file, OntologyTermFetcher fetcher)
Constructor for LightMIJsonWriter.LightMIJsonWriter(OutputStream output, OntologyTermFetcher fetcher)
Constructor for LightMIJsonWriter.LightMIJsonWriter(Writer writer, OntologyTermFetcher fetcher)
Constructor for LightMIJsonWriter.LightMIJsonWriter(Writer writer, OntologyTermFetcher fetcher, Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for LightMIJsonWriter.LightMIJsonWriter(Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for LightMIJsonWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initialiseInteractionWriter()
initialiseInteractionWriter.protected void
writeComplex(Complex complex)
writeComplex.-
Methods inherited from class psidev.psi.mi.jami.json.nary.AbstractMIJsonWriter
clear, close, end, flush, getFetcher, getIdGenerator, getInteractionWriter, getInteractorWriter, getProcessedFeatures, getProcessedInteractors, getProcessedParticipants, getWriter, initialiseContext, registerAndWriteInteractor, reset, setFetcher, setInteractionWriter, start, write, write, write, writeEnd, writeStart
-
-
-
-
Constructor Detail
-
LightMIJsonWriter
public LightMIJsonWriter()
Constructor for LightMIJsonWriter.
-
LightMIJsonWriter
public LightMIJsonWriter(File file, OntologyTermFetcher fetcher) throws IOException
Constructor for LightMIJsonWriter.
- Parameters:
file
- aFile
object.fetcher
- aOntologyTermFetcher
object.- Throws:
IOException
- if any.
-
LightMIJsonWriter
public LightMIJsonWriter(OutputStream output, OntologyTermFetcher fetcher)
Constructor for LightMIJsonWriter.
- Parameters:
output
- aOutputStream
object.fetcher
- aOntologyTermFetcher
object.
-
LightMIJsonWriter
public LightMIJsonWriter(Writer writer, OntologyTermFetcher fetcher)
Constructor for LightMIJsonWriter.
- Parameters:
writer
- aWriter
object.fetcher
- aOntologyTermFetcher
object.
-
LightMIJsonWriter
public LightMIJsonWriter(Writer writer, OntologyTermFetcher fetcher, Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for LightMIJsonWriter.
- Parameters:
writer
- aWriter
object.fetcher
- aOntologyTermFetcher
object.processedInteractors
- aMap
object.processedFeatures
- aMap
object.processedParticipants
- aMap
object.idGenerator
- aIncrementalIdGenerator
object.
-
LightMIJsonWriter
public LightMIJsonWriter(Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for LightMIJsonWriter.
- Parameters:
processedInteractors
- aMap
object.processedFeatures
- aMap
object.processedParticipants
- aMap
object.idGenerator
- aIncrementalIdGenerator
object.
-
-
Method Detail
-
writeComplex
protected void writeComplex(Complex complex)
writeComplex.
- Specified by:
writeComplex
in classAbstractMIJsonWriter<Interaction>
- Parameters:
complex
- aComplex
object.
-
initialiseInteractionWriter
protected void initialiseInteractionWriter()
initialiseInteractionWriter.
- Specified by:
initialiseInteractionWriter
in classAbstractMIJsonWriter<Interaction>
-
-