Package psidev.psi.mi.jami.json.binary
Class MIJsonWriter
- java.lang.Object
-
- psidev.psi.mi.jami.json.binary.AbstractMIJsonWriter<Interaction,BinaryInteraction>
-
- psidev.psi.mi.jami.json.binary.MIJsonWriter
-
- All Implemented Interfaces:
InteractionWriter<Interaction>
public class MIJsonWriter extends AbstractMIJsonWriter<Interaction,BinaryInteraction>
The jsonWriter which writes all interactions- Since:
05/07/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description MIJsonWriter()
Constructor for MIJsonWriter.MIJsonWriter(File file, OntologyTermFetcher fetcher)
Constructor for MIJsonWriter.MIJsonWriter(File file, OntologyTermFetcher fetcher, ComplexExpansionMethod<Interaction,BinaryInteraction> expansionMethod)
Constructor for MIJsonWriter.MIJsonWriter(OutputStream output, OntologyTermFetcher fetcher)
Constructor for MIJsonWriter.MIJsonWriter(OutputStream output, OntologyTermFetcher fetcher, ComplexExpansionMethod<Interaction,BinaryInteraction> expansionMethod)
Constructor for MIJsonWriter.MIJsonWriter(Writer writer, OntologyTermFetcher fetcher)
Constructor for MIJsonWriter.MIJsonWriter(Writer writer, OntologyTermFetcher fetcher, ComplexExpansionMethod<Interaction,BinaryInteraction> expansionMethod)
Constructor for MIJsonWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initialiseBinaryWriter(File file, OntologyTermFetcher fetcher)
initialiseBinaryWriter.protected void
initialiseBinaryWriter(OutputStream output, OntologyTermFetcher fetcher)
initialiseBinaryWriter.protected void
initialiseBinaryWriter(Writer writer, OntologyTermFetcher fetcher)
initialiseBinaryWriter.protected void
initialiseDefaultBinaryWriter()
initialiseDefaultBinaryWriter.protected void
initialiseDefaultExpansionMethod()
initialiseDefaultExpansionMethod.-
Methods inherited from class psidev.psi.mi.jami.json.binary.AbstractMIJsonWriter
close, end, flush, getBinaryWriter, initialiseContext, reset, setBinaryWriter, setExpansionMethod, start, write, write, write
-
-
-
-
Constructor Detail
-
MIJsonWriter
public MIJsonWriter()
Constructor for MIJsonWriter.
-
MIJsonWriter
public MIJsonWriter(File file, OntologyTermFetcher fetcher) throws IOException
Constructor for MIJsonWriter.
- Parameters:
file
- aFile
object.fetcher
- aOntologyTermFetcher
object.- Throws:
IOException
- if any.
-
MIJsonWriter
public MIJsonWriter(OutputStream output, OntologyTermFetcher fetcher)
Constructor for MIJsonWriter.
- Parameters:
output
- aOutputStream
object.fetcher
- aOntologyTermFetcher
object.
-
MIJsonWriter
public MIJsonWriter(Writer writer, OntologyTermFetcher fetcher)
Constructor for MIJsonWriter.
- Parameters:
writer
- aWriter
object.fetcher
- aOntologyTermFetcher
object.
-
MIJsonWriter
public MIJsonWriter(File file, OntologyTermFetcher fetcher, ComplexExpansionMethod<Interaction,BinaryInteraction> expansionMethod) throws IOException
Constructor for MIJsonWriter.
- Parameters:
file
- aFile
object.fetcher
- aOntologyTermFetcher
object.expansionMethod
- aComplexExpansionMethod
object.- Throws:
IOException
- if any.
-
MIJsonWriter
public MIJsonWriter(OutputStream output, OntologyTermFetcher fetcher, ComplexExpansionMethod<Interaction,BinaryInteraction> expansionMethod)
Constructor for MIJsonWriter.
- Parameters:
output
- aOutputStream
object.fetcher
- aOntologyTermFetcher
object.expansionMethod
- aComplexExpansionMethod
object.
-
MIJsonWriter
public MIJsonWriter(Writer writer, OntologyTermFetcher fetcher, ComplexExpansionMethod<Interaction,BinaryInteraction> expansionMethod)
Constructor for MIJsonWriter.
- Parameters:
writer
- aWriter
object.fetcher
- aOntologyTermFetcher
object.expansionMethod
- aComplexExpansionMethod
object.
-
-
Method Detail
-
initialiseDefaultExpansionMethod
protected void initialiseDefaultExpansionMethod()
initialiseDefaultExpansionMethod.
- Specified by:
initialiseDefaultExpansionMethod
in classAbstractMIJsonWriter<Interaction,BinaryInteraction>
-
initialiseBinaryWriter
protected void initialiseBinaryWriter(File file, OntologyTermFetcher fetcher) throws IOException
initialiseBinaryWriter.
- Specified by:
initialiseBinaryWriter
in classAbstractMIJsonWriter<Interaction,BinaryInteraction>
- Parameters:
file
- aFile
object.fetcher
- aOntologyTermFetcher
object.- Throws:
IOException
- if any.
-
initialiseBinaryWriter
protected void initialiseBinaryWriter(OutputStream output, OntologyTermFetcher fetcher)
initialiseBinaryWriter.
- Specified by:
initialiseBinaryWriter
in classAbstractMIJsonWriter<Interaction,BinaryInteraction>
- Parameters:
output
- aOutputStream
object.fetcher
- aOntologyTermFetcher
object.
-
initialiseBinaryWriter
protected void initialiseBinaryWriter(Writer writer, OntologyTermFetcher fetcher)
initialiseBinaryWriter.
- Specified by:
initialiseBinaryWriter
in classAbstractMIJsonWriter<Interaction,BinaryInteraction>
- Parameters:
writer
- aWriter
object.fetcher
- aOntologyTermFetcher
object.
-
initialiseDefaultBinaryWriter
protected void initialiseDefaultBinaryWriter()
initialiseDefaultBinaryWriter.
- Specified by:
initialiseDefaultBinaryWriter
in classAbstractMIJsonWriter<Interaction,BinaryInteraction>
-
-