Package psidev.psi.mi.jami.tab.io.writer
Class Mitab27BinaryWriter
- java.lang.Object
-
- psidev.psi.mi.jami.tab.io.writer.AbstractMitab25BinaryWriter<T,P>
-
- psidev.psi.mi.jami.tab.io.writer.AbstractMitab26BinaryWriter<T,P>
-
- psidev.psi.mi.jami.tab.io.writer.AbstractMitab27BinaryWriter<BinaryInteraction,Participant>
-
- psidev.psi.mi.jami.tab.io.writer.Mitab27BinaryWriter
-
- All Implemented Interfaces:
InteractionWriter<BinaryInteraction>
- Direct Known Subclasses:
Mitab27BinaryWriter
public class Mitab27BinaryWriter extends AbstractMitab27BinaryWriter<BinaryInteraction,Participant>
The basic Mitab 2.7 writer for BinaryInteraction- Since:
20/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description Mitab27BinaryWriter()Constructor for Mitab27BinaryWriter.Mitab27BinaryWriter(File file)Constructor for Mitab27BinaryWriter.Mitab27BinaryWriter(OutputStream output)Constructor for Mitab27BinaryWriter.Mitab27BinaryWriter(Writer writer)Constructor for Mitab27BinaryWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()close.protected voidinitialiseColumnFeeder()initialiseColumnFeeder.voidinitialiseContext(Map<String,Object> options)Initialise the context of the InteractionWriter given a map of optionsprotected voidinitialiseSubWritersWith(Writer writer)initialiseSubWritersWith.voidreset()reset.protected voidsetBinaryEvidenceWriter(AbstractMitab27BinaryWriter<BinaryInteractionEvidence,ParticipantEvidence> binaryEvidenceWriter)Setter for the fieldbinaryEvidenceWriter.protected voidsetModelledBinaryWriter(AbstractMitab27BinaryWriter<ModelledBinaryInteraction,ModelledParticipant> modelledBinaryWriter)Setter for the fieldmodelledBinaryWriter.voidsetWriteHeader(boolean writeHeader)Setter for the fieldwriteHeader.voidstart()start.voidwrite(BinaryInteraction interaction)Writes a binary interaction.-
Methods inherited from class psidev.psi.mi.jami.tab.io.writer.AbstractMitab27BinaryWriter
writeBinary
-
Methods inherited from class psidev.psi.mi.jami.tab.io.writer.AbstractMitab25BinaryWriter
end, flush, getColumnFeeder, getVersion, getWriter, hasStarted, isWriteHeader, setColumnFeeder, setStarted, setVersion, write, write, writeHeader
-
-
-
-
Constructor Detail
-
Mitab27BinaryWriter
public Mitab27BinaryWriter()
Constructor for Mitab27BinaryWriter.
-
Mitab27BinaryWriter
public Mitab27BinaryWriter(File file) throws IOException
Constructor for Mitab27BinaryWriter.
- Parameters:
file- aFileobject.- Throws:
IOException- if any.
-
Mitab27BinaryWriter
public Mitab27BinaryWriter(OutputStream output)
Constructor for Mitab27BinaryWriter.
- Parameters:
output- aOutputStreamobject.
-
-
Method Detail
-
initialiseContext
public void initialiseContext(Map<String,Object> options)
Initialise the context of the InteractionWriter given a map of options- Specified by:
initialiseContextin interfaceInteractionWriter<BinaryInteraction>- Overrides:
initialiseContextin classAbstractMitab25BinaryWriter<BinaryInteraction,Participant>- Parameters:
options- : the options given by the user
-
start
public void start() throws MIIOExceptionstart.
- Specified by:
startin interfaceInteractionWriter<BinaryInteraction>- Overrides:
startin classAbstractMitab25BinaryWriter<BinaryInteraction,Participant>- Throws:
MIIOException- if any.
-
close
public void close() throws MIIOExceptionclose.
- Specified by:
closein interfaceInteractionWriter<BinaryInteraction>- Overrides:
closein classAbstractMitab25BinaryWriter<BinaryInteraction,Participant>- Throws:
MIIOException- if any.
-
reset
public void reset() throws MIIOExceptionreset.
- Specified by:
resetin interfaceInteractionWriter<BinaryInteraction>- Overrides:
resetin classAbstractMitab25BinaryWriter<BinaryInteraction,Participant>- Throws:
MIIOException- if any.
-
write
public void write(BinaryInteraction interaction) throws MIIOException
Writes a binary interaction. Does not write any extended properties from participants, interaction and features This method will write empty columns for interaction detection method, publication author and identifier, source and confidences. It will also ignore experimental roles, host organism, interaction parameters and participant identification methods- Specified by:
writein interfaceInteractionWriter<BinaryInteraction>- Overrides:
writein classAbstractMitab25BinaryWriter<BinaryInteraction,Participant>- Parameters:
interaction- a T object.- Throws:
MIIOException- if any.
-
initialiseSubWritersWith
protected void initialiseSubWritersWith(Writer writer)
initialiseSubWritersWith.
- Parameters:
writer- aWriterobject.
-
initialiseColumnFeeder
protected void initialiseColumnFeeder()
initialiseColumnFeeder.
- Specified by:
initialiseColumnFeederin classAbstractMitab25BinaryWriter<BinaryInteraction,Participant>
-
setWriteHeader
public void setWriteHeader(boolean writeHeader)
Setter for the field
writeHeader.- Overrides:
setWriteHeaderin classAbstractMitab25BinaryWriter<BinaryInteraction,Participant>- Parameters:
writeHeader- a boolean.
-
setModelledBinaryWriter
protected void setModelledBinaryWriter(AbstractMitab27BinaryWriter<ModelledBinaryInteraction,ModelledParticipant> modelledBinaryWriter)
Setter for the field
modelledBinaryWriter.- Parameters:
modelledBinaryWriter- aAbstractMitab27BinaryWriterobject.
-
setBinaryEvidenceWriter
protected void setBinaryEvidenceWriter(AbstractMitab27BinaryWriter<BinaryInteractionEvidence,ParticipantEvidence> binaryEvidenceWriter)
Setter for the field
binaryEvidenceWriter.- Parameters:
binaryEvidenceWriter- aAbstractMitab27BinaryWriterobject.
-
-