Package psidev.psi.mi.jami.json.binary
Class LightMIJsonBinaryWriter
- java.lang.Object
-
- psidev.psi.mi.jami.json.nary.AbstractMIJsonWriter<I>
-
- psidev.psi.mi.jami.json.binary.AbstractMIJsonBinaryWriter<BinaryInteraction>
-
- psidev.psi.mi.jami.json.binary.LightMIJsonBinaryWriter
-
- All Implemented Interfaces:
InteractionWriter<BinaryInteraction>
public class LightMIJsonBinaryWriter extends AbstractMIJsonBinaryWriter<BinaryInteraction>
JSON writer for light interactions- Since:
03/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description LightMIJsonBinaryWriter()Constructor for LightMIJsonBinaryWriter.LightMIJsonBinaryWriter(File file, OntologyTermFetcher fetcher)Constructor for LightMIJsonBinaryWriter.LightMIJsonBinaryWriter(OutputStream output, OntologyTermFetcher fetcher)Constructor for LightMIJsonBinaryWriter.LightMIJsonBinaryWriter(Writer writer, OntologyTermFetcher fetcher)Constructor for LightMIJsonBinaryWriter.LightMIJsonBinaryWriter(Writer writer, OntologyTermFetcher fetcher, Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)Constructor for LightMIJsonBinaryWriter.LightMIJsonBinaryWriter(Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)Constructor for LightMIJsonBinaryWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinitExpansionMethodInteractionWriter(Integer expansionId)initExpansionMethodInteractionWriter.protected voidinitialiseInteractionWriter()initialiseInteractionWriter.-
Methods inherited from class psidev.psi.mi.jami.json.binary.AbstractMIJsonBinaryWriter
close, flush, getExpansionId, initialiseContext, reset, setExpansionId, writeComplex
-
Methods inherited from class psidev.psi.mi.jami.json.nary.AbstractMIJsonWriter
clear, end, getFetcher, getIdGenerator, getInteractionWriter, getInteractorWriter, getProcessedFeatures, getProcessedInteractors, getProcessedParticipants, getWriter, registerAndWriteInteractor, setFetcher, setInteractionWriter, start, write, write, write, writeEnd, writeStart
-
-
-
-
Constructor Detail
-
LightMIJsonBinaryWriter
public LightMIJsonBinaryWriter()
Constructor for LightMIJsonBinaryWriter.
-
LightMIJsonBinaryWriter
public LightMIJsonBinaryWriter(File file, OntologyTermFetcher fetcher) throws IOException
Constructor for LightMIJsonBinaryWriter.
- Parameters:
file- aFileobject.fetcher- aOntologyTermFetcherobject.- Throws:
IOException- if any.
-
LightMIJsonBinaryWriter
public LightMIJsonBinaryWriter(OutputStream output, OntologyTermFetcher fetcher)
Constructor for LightMIJsonBinaryWriter.
- Parameters:
output- aOutputStreamobject.fetcher- aOntologyTermFetcherobject.
-
LightMIJsonBinaryWriter
public LightMIJsonBinaryWriter(Writer writer, OntologyTermFetcher fetcher)
Constructor for LightMIJsonBinaryWriter.
- Parameters:
writer- aWriterobject.fetcher- aOntologyTermFetcherobject.
-
LightMIJsonBinaryWriter
public LightMIJsonBinaryWriter(Writer writer, OntologyTermFetcher fetcher, Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for LightMIJsonBinaryWriter.
- Parameters:
writer- aWriterobject.fetcher- aOntologyTermFetcherobject.processedInteractors- aMapobject.processedFeatures- aMapobject.processedParticipants- aMapobject.idGenerator- aIncrementalIdGeneratorobject.
-
LightMIJsonBinaryWriter
public LightMIJsonBinaryWriter(Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for LightMIJsonBinaryWriter.
- Parameters:
processedInteractors- aMapobject.processedFeatures- aMapobject.processedParticipants- aMapobject.idGenerator- aIncrementalIdGeneratorobject.
-
-
Method Detail
-
initialiseInteractionWriter
protected void initialiseInteractionWriter()
initialiseInteractionWriter.
- Specified by:
initialiseInteractionWriterin classAbstractMIJsonWriter<BinaryInteraction>
-
initExpansionMethodInteractionWriter
protected void initExpansionMethodInteractionWriter(Integer expansionId)
initExpansionMethodInteractionWriter.
- Specified by:
initExpansionMethodInteractionWriterin classAbstractMIJsonBinaryWriter<BinaryInteraction>- Parameters:
expansionId- aIntegerobject.
-
-