Package psidev.psi.mi.jami.tab.io.writer
Class DefaultMitabWriter
- java.lang.Object
-
- psidev.psi.mi.jami.tab.io.writer.DefaultMitabWriter
-
- All Implemented Interfaces:
InteractionWriter
public class DefaultMitabWriter extends Object implements InteractionWriter
Generic writer for MITAB- Since:
02/05/14
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description DefaultMitabWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
close.void
end()
end.void
flush()
flush.protected InteractionWriter
getDelegate()
Getter for the fielddelegate
.void
initialiseContext(Map options)
Initialise the context of the InteractionWriter given a map of optionsvoid
reset()
reset.protected void
setDelegate(InteractionWriter delegate)
Setter for the fielddelegate
.void
start()
start.void
write(Collection interactions)
write.void
write(Iterator interactions)
Writes Interaction objects using iteratorvoid
write(Interaction interaction)
write.
-
-
-
Method Detail
-
initialiseContext
public void initialiseContext(Map options)
Initialise the context of the InteractionWriter given a map of options- Specified by:
initialiseContext
in interfaceInteractionWriter
- Parameters:
options
- : the options given by the user
-
start
public void start() throws MIIOException
start.
- Specified by:
start
in interfaceInteractionWriter
- Throws:
MIIOException
- if any.
-
end
public void end() throws MIIOException
end.
- Specified by:
end
in interfaceInteractionWriter
- Throws:
MIIOException
- if any.
-
write
public void write(Interaction interaction) throws MIIOException
write.
- Specified by:
write
in interfaceInteractionWriter
- Parameters:
interaction
- aInteraction
object.- Throws:
MIIOException
- if any.
-
write
public void write(Collection interactions) throws MIIOException
write.
- Specified by:
write
in interfaceInteractionWriter
- Parameters:
interactions
- aCollection
object.- Throws:
MIIOException
- if any.
-
write
public void write(Iterator interactions) throws MIIOException
Writes Interaction objects using iterator- Specified by:
write
in interfaceInteractionWriter
- Parameters:
interactions
- : the iterator of interactions to write- Throws:
MIIOException
- : if cannot write
-
flush
public void flush() throws MIIOException
flush.
- Specified by:
flush
in interfaceInteractionWriter
- Throws:
MIIOException
- if any.
-
close
public void close() throws MIIOException
close.
- Specified by:
close
in interfaceInteractionWriter
- Throws:
MIIOException
- if any.
-
reset
public void reset() throws MIIOException
reset.
- Specified by:
reset
in interfaceInteractionWriter
- Throws:
MIIOException
- if any.
-
getDelegate
protected InteractionWriter getDelegate()
Getter for the field
delegate
.- Returns:
- a
InteractionWriter
object.
-
setDelegate
protected void setDelegate(InteractionWriter delegate)
Setter for the field
delegate
.- Parameters:
delegate
- aInteractionWriter
object.
-
-