Package psidev.psi.mi.jami.json.binary
Class AbstractMIJsonBinaryWriter<I extends BinaryInteraction>
- java.lang.Object
-
- psidev.psi.mi.jami.json.nary.AbstractMIJsonWriter<I>
-
- psidev.psi.mi.jami.json.binary.AbstractMIJsonBinaryWriter<I>
-
- All Implemented Interfaces:
InteractionWriter<I>
- Direct Known Subclasses:
LightMIJsonBinaryWriter,MIJsonBinaryEvidenceWriter,MIJsonBinaryWriter,MIJsonModelledBinaryWriter
public abstract class AbstractMIJsonBinaryWriter<I extends BinaryInteraction> extends AbstractMIJsonWriter<I>
Abstract JSON writer for binary interactions (binary json format)- Since:
03/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractMIJsonBinaryWriter()Constructor for AbstractMIJsonBinaryWriter.AbstractMIJsonBinaryWriter(File file, OntologyTermFetcher fetcher)Constructor for AbstractMIJsonBinaryWriter.AbstractMIJsonBinaryWriter(OutputStream output, OntologyTermFetcher fetcher)Constructor for AbstractMIJsonBinaryWriter.AbstractMIJsonBinaryWriter(Writer writer, OntologyTermFetcher fetcher)Constructor for AbstractMIJsonBinaryWriter.protectedAbstractMIJsonBinaryWriter(Writer writer, OntologyTermFetcher fetcher, Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)Constructor for AbstractMIJsonBinaryWriter.protectedAbstractMIJsonBinaryWriter(Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)Constructor for AbstractMIJsonBinaryWriter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()close.voidflush()flush.protected IntegergetExpansionId()Getter for the fieldexpansionId.protected abstract voidinitExpansionMethodInteractionWriter(Integer expansionId)initExpansionMethodInteractionWriter.voidinitialiseContext(Map<String,Object> options)Initialise the context of the InteractionWriter given a map of optionsvoidreset()reset.voidsetExpansionId(Integer expansionId)Setter for the fieldexpansionId.protected voidwriteComplex(Complex complex)writeComplex.-
Methods inherited from class psidev.psi.mi.jami.json.nary.AbstractMIJsonWriter
clear, end, getFetcher, getIdGenerator, getInteractionWriter, getInteractorWriter, getProcessedFeatures, getProcessedInteractors, getProcessedParticipants, getWriter, initialiseInteractionWriter, registerAndWriteInteractor, setFetcher, setInteractionWriter, start, write, write, write, writeEnd, writeStart
-
-
-
-
Constructor Detail
-
AbstractMIJsonBinaryWriter
public AbstractMIJsonBinaryWriter()
Constructor for AbstractMIJsonBinaryWriter.
-
AbstractMIJsonBinaryWriter
public AbstractMIJsonBinaryWriter(File file, OntologyTermFetcher fetcher) throws IOException
Constructor for AbstractMIJsonBinaryWriter.
- Parameters:
file- aFileobject.fetcher- aOntologyTermFetcherobject.- Throws:
IOException- if any.
-
AbstractMIJsonBinaryWriter
public AbstractMIJsonBinaryWriter(OutputStream output, OntologyTermFetcher fetcher)
Constructor for AbstractMIJsonBinaryWriter.
- Parameters:
output- aOutputStreamobject.fetcher- aOntologyTermFetcherobject.
-
AbstractMIJsonBinaryWriter
public AbstractMIJsonBinaryWriter(Writer writer, OntologyTermFetcher fetcher)
Constructor for AbstractMIJsonBinaryWriter.
- Parameters:
writer- aWriterobject.fetcher- aOntologyTermFetcherobject.
-
AbstractMIJsonBinaryWriter
protected AbstractMIJsonBinaryWriter(Writer writer, OntologyTermFetcher fetcher, Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for AbstractMIJsonBinaryWriter.
- Parameters:
writer- aWriterobject.fetcher- aOntologyTermFetcherobject.processedInteractors- aMapobject.processedFeatures- aMapobject.processedParticipants- aMapobject.idGenerator- aIncrementalIdGeneratorobject.
-
AbstractMIJsonBinaryWriter
protected AbstractMIJsonBinaryWriter(Map<String,String> processedInteractors, Map<Feature,Integer> processedFeatures, Map<Entity,Integer> processedParticipants, IncrementalIdGenerator idGenerator)
Constructor for AbstractMIJsonBinaryWriter.
- Parameters:
processedInteractors- aMapobject.processedFeatures- aMapobject.processedParticipants- aMapobject.idGenerator- aIncrementalIdGeneratorobject.
-
-
Method Detail
-
close
public void close() throws MIIOExceptionclose.
- Specified by:
closein interfaceInteractionWriter<I extends BinaryInteraction>- Overrides:
closein classAbstractMIJsonWriter<I extends BinaryInteraction>- Throws:
MIIOException- if any.
-
reset
public void reset() throws MIIOExceptionreset.
- Specified by:
resetin interfaceInteractionWriter<I extends BinaryInteraction>- Overrides:
resetin classAbstractMIJsonWriter<I extends BinaryInteraction>- Throws:
MIIOException- if any.
-
initialiseContext
public void initialiseContext(Map<String,Object> options)
Initialise the context of the InteractionWriter given a map of options- Specified by:
initialiseContextin interfaceInteractionWriter<I extends BinaryInteraction>- Overrides:
initialiseContextin classAbstractMIJsonWriter<I extends BinaryInteraction>- Parameters:
options- : the options given by the user
-
flush
public void flush() throws MIIOExceptionflush.
- Specified by:
flushin interfaceInteractionWriter<I extends BinaryInteraction>- Overrides:
flushin classAbstractMIJsonWriter<I extends BinaryInteraction>- Throws:
MIIOException- if any.
-
setExpansionId
public void setExpansionId(Integer expansionId)
Setter for the field
expansionId.- Parameters:
expansionId- aIntegerobject.
-
initExpansionMethodInteractionWriter
protected abstract void initExpansionMethodInteractionWriter(Integer expansionId)
initExpansionMethodInteractionWriter.
- Parameters:
expansionId- aIntegerobject.
-
getExpansionId
protected Integer getExpansionId()
Getter for the field
expansionId.- Returns:
- a
Integerobject.
-
writeComplex
protected void writeComplex(Complex complex)
writeComplex.
- Specified by:
writeComplexin classAbstractMIJsonWriter<I extends BinaryInteraction>- Parameters:
complex- aComplexobject.
-
-