Package psidev.psi.mi.jami.tab.io.writer
Class Mitab26BinaryWriter
- java.lang.Object
-
- psidev.psi.mi.jami.tab.io.writer.AbstractMitab25BinaryWriter<T,P>
-
- psidev.psi.mi.jami.tab.io.writer.AbstractMitab26BinaryWriter<BinaryInteraction,Participant>
-
- psidev.psi.mi.jami.tab.io.writer.Mitab26BinaryWriter
-
- All Implemented Interfaces:
InteractionWriter<BinaryInteraction>
- Direct Known Subclasses:
Mitab26BinaryWriter
public class Mitab26BinaryWriter extends AbstractMitab26BinaryWriter<BinaryInteraction,Participant>
The basic Mitab 2.6 writer for BinaryInteraction- Since:
20/06/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description Mitab26BinaryWriter()Constructor for Mitab26BinaryWriter.Mitab26BinaryWriter(File file)Constructor for Mitab26BinaryWriter.Mitab26BinaryWriter(OutputStream output)Constructor for Mitab26BinaryWriter.Mitab26BinaryWriter(Writer writer)Constructor for Mitab26BinaryWriter.
-
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(AbstractMitab26BinaryWriter<BinaryInteractionEvidence,ParticipantEvidence> binaryEvidenceWriter)Setter for the fieldbinaryEvidenceWriter.protected voidsetModelledBinaryWriter(AbstractMitab26BinaryWriter<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.AbstractMitab26BinaryWriter
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
-
Mitab26BinaryWriter
public Mitab26BinaryWriter()
Constructor for Mitab26BinaryWriter.
-
Mitab26BinaryWriter
public Mitab26BinaryWriter(File file) throws IOException
Constructor for Mitab26BinaryWriter.
- Parameters:
file- aFileobject.- Throws:
IOException- if any.
-
Mitab26BinaryWriter
public Mitab26BinaryWriter(OutputStream output)
Constructor for Mitab26BinaryWriter.
- 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.
-
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.
-
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.
-
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(AbstractMitab26BinaryWriter<ModelledBinaryInteraction,ModelledParticipant> modelledBinaryWriter)
Setter for the field
modelledBinaryWriter.- Parameters:
modelledBinaryWriter- aAbstractMitab26BinaryWriterobject.
-
setBinaryEvidenceWriter
protected void setBinaryEvidenceWriter(AbstractMitab26BinaryWriter<BinaryInteractionEvidence,ParticipantEvidence> binaryEvidenceWriter)
Setter for the field
binaryEvidenceWriter.- Parameters:
binaryEvidenceWriter- aAbstractMitab26BinaryWriterobject.
-
-