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 voidinitialiseBinaryWriter(File file, OntologyTermFetcher fetcher)initialiseBinaryWriter.protected voidinitialiseBinaryWriter(OutputStream output, OntologyTermFetcher fetcher)initialiseBinaryWriter.protected voidinitialiseBinaryWriter(Writer writer, OntologyTermFetcher fetcher)initialiseBinaryWriter.protected voidinitialiseDefaultBinaryWriter()initialiseDefaultBinaryWriter.protected voidinitialiseDefaultExpansionMethod()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- aFileobject.fetcher- aOntologyTermFetcherobject.- Throws:
IOException- if any.
-
MIJsonWriter
public MIJsonWriter(OutputStream output, OntologyTermFetcher fetcher)
Constructor for MIJsonWriter.
- Parameters:
output- aOutputStreamobject.fetcher- aOntologyTermFetcherobject.
-
MIJsonWriter
public MIJsonWriter(Writer writer, OntologyTermFetcher fetcher)
Constructor for MIJsonWriter.
- Parameters:
writer- aWriterobject.fetcher- aOntologyTermFetcherobject.
-
MIJsonWriter
public MIJsonWriter(File file, OntologyTermFetcher fetcher, ComplexExpansionMethod<Interaction,BinaryInteraction> expansionMethod) throws IOException
Constructor for MIJsonWriter.
- Parameters:
file- aFileobject.fetcher- aOntologyTermFetcherobject.expansionMethod- aComplexExpansionMethodobject.- Throws:
IOException- if any.
-
MIJsonWriter
public MIJsonWriter(OutputStream output, OntologyTermFetcher fetcher, ComplexExpansionMethod<Interaction,BinaryInteraction> expansionMethod)
Constructor for MIJsonWriter.
- Parameters:
output- aOutputStreamobject.fetcher- aOntologyTermFetcherobject.expansionMethod- aComplexExpansionMethodobject.
-
MIJsonWriter
public MIJsonWriter(Writer writer, OntologyTermFetcher fetcher, ComplexExpansionMethod<Interaction,BinaryInteraction> expansionMethod)
Constructor for MIJsonWriter.
- Parameters:
writer- aWriterobject.fetcher- aOntologyTermFetcherobject.expansionMethod- aComplexExpansionMethodobject.
-
-
Method Detail
-
initialiseDefaultExpansionMethod
protected void initialiseDefaultExpansionMethod()
initialiseDefaultExpansionMethod.
- Specified by:
initialiseDefaultExpansionMethodin classAbstractMIJsonWriter<Interaction,BinaryInteraction>
-
initialiseBinaryWriter
protected void initialiseBinaryWriter(File file, OntologyTermFetcher fetcher) throws IOException
initialiseBinaryWriter.
- Specified by:
initialiseBinaryWriterin classAbstractMIJsonWriter<Interaction,BinaryInteraction>- Parameters:
file- aFileobject.fetcher- aOntologyTermFetcherobject.- Throws:
IOException- if any.
-
initialiseBinaryWriter
protected void initialiseBinaryWriter(OutputStream output, OntologyTermFetcher fetcher)
initialiseBinaryWriter.
- Specified by:
initialiseBinaryWriterin classAbstractMIJsonWriter<Interaction,BinaryInteraction>- Parameters:
output- aOutputStreamobject.fetcher- aOntologyTermFetcherobject.
-
initialiseBinaryWriter
protected void initialiseBinaryWriter(Writer writer, OntologyTermFetcher fetcher)
initialiseBinaryWriter.
- Specified by:
initialiseBinaryWriterin classAbstractMIJsonWriter<Interaction,BinaryInteraction>- Parameters:
writer- aWriterobject.fetcher- aOntologyTermFetcherobject.
-
initialiseDefaultBinaryWriter
protected void initialiseDefaultBinaryWriter()
initialiseDefaultBinaryWriter.
- Specified by:
initialiseDefaultBinaryWriterin classAbstractMIJsonWriter<Interaction,BinaryInteraction>
-
-