Class CompactXmlBinaryEvidenceWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.AbstractXmlWriter<T>
-
- psidev.psi.mi.jami.xml.io.writer.compact.AbstractCompactXmlWriter<BinaryInteractionEvidence>
-
- psidev.psi.mi.jami.xml.io.writer.compact.CompactXmlBinaryEvidenceWriter
-
- All Implemented Interfaces:
InteractionWriter<BinaryInteractionEvidence>
public class CompactXmlBinaryEvidenceWriter extends AbstractCompactXmlWriter<BinaryInteractionEvidence>
Compact PSI-XML writer for binary interaction evidences (full experimental evidences)- Since:
19/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description CompactXmlBinaryEvidenceWriter(PsiXmlVersion version)
Constructor for CompactXmlBinaryEvidenceWriter.CompactXmlBinaryEvidenceWriter(PsiXmlVersion version, File file)
Constructor for CompactXmlBinaryEvidenceWriter.CompactXmlBinaryEvidenceWriter(PsiXmlVersion version, OutputStream output)
Constructor for CompactXmlBinaryEvidenceWriter.CompactXmlBinaryEvidenceWriter(PsiXmlVersion version, Writer writer)
Constructor for CompactXmlBinaryEvidenceWriter.CompactXmlBinaryEvidenceWriter(PsiXmlVersion version, XMLStreamWriter streamWriter, PsiXmlObjectCache elementCache)
Constructor for CompactXmlBinaryEvidenceWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Source
extractSourceFromInteraction()
extractSourceFromInteraction.protected void
initialiseSubWriters()
initialiseSubWriters.protected void
registerAvailabilities(BinaryInteractionEvidence interaction)
registerAvailabilities.protected void
registerExperiment(BinaryInteractionEvidence interaction)
registerExperiment.-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.compact.AbstractCompactXmlWriter
close, getAvailabilities, getAvailabilityWriter, getExperiments, getExperimentWriter, getInteractionType, getInteractors, getInteractorWriter, initialiseContext, initialiseDefaultAvailabilitySet, initialiseDefaultElementCache, initialiseDefaultExperimentSet, initialiseDefaultInteractorSet, initialiseOptionalWriters, registerAllInteractionsProperties, registerAllInteractors, registerAllInteractorsAndExperimentsFrom, registerInteractionProperties, registerParticipantInteractor, registerParticipantPoolInteractor, reset, setAvailabilitySet, setAvailabilityWriter, setExperimentSet, setExperimentWriter, setInteractorSet, setInteractorWriter, writeStartEntryContent
-
Methods inherited from class psidev.psi.mi.jami.xml.io.writer.AbstractXmlWriter
end, flush, getComplexWriter, getCurrentInteraction, getCurrentSource, getElementCache, getInteractionsIterator, getInteractionWriter, getProcessedInteractions, getStreamWriter, getSubWritersFactory, getVersion, initialiseDefaultInteractionSet, initialiseDefaultSource, initialiseSubWriters, isStarted, newXmlSource, setAnnotationsWriter, setComplexWriter, setCurrentInteraction, setCurrentSource, setDefaultReleaseDate, setDefaultSource, setElementCache, setEntryAnnotations, setInteractionSet, setInteractionsIterator, setInteractionWriter, setSourceWriter, setStarted, setSubWritersFactory, setVersion, setWriteComplexesAsInteractors, start, write, write, write, writeComplex, writeComplexesAsInteractors, writeEndEntry, writeEndEntryContent, writeEndInteractionList, writeEntryAttributes, writeEntrySetAttributes, writeInteraction, writeInteractionListContent, writeSource, writeStartEntry, writeStartInteractionList, writeSubComplexInEntry
-
-
-
-
Constructor Detail
-
CompactXmlBinaryEvidenceWriter
public CompactXmlBinaryEvidenceWriter(PsiXmlVersion version)
Constructor for CompactXmlBinaryEvidenceWriter.
- Parameters:
version
- aPsiXmlVersion
object.
-
CompactXmlBinaryEvidenceWriter
public CompactXmlBinaryEvidenceWriter(PsiXmlVersion version, File file) throws IOException, XMLStreamException
Constructor for CompactXmlBinaryEvidenceWriter.
- Parameters:
version
- aPsiXmlVersion
object.file
- aFile
object.- Throws:
IOException
- if any.XMLStreamException
- if any.
-
CompactXmlBinaryEvidenceWriter
public CompactXmlBinaryEvidenceWriter(PsiXmlVersion version, OutputStream output) throws XMLStreamException
Constructor for CompactXmlBinaryEvidenceWriter.
- Parameters:
version
- aPsiXmlVersion
object.output
- aOutputStream
object.- Throws:
XMLStreamException
- if any.
-
CompactXmlBinaryEvidenceWriter
public CompactXmlBinaryEvidenceWriter(PsiXmlVersion version, Writer writer) throws XMLStreamException
Constructor for CompactXmlBinaryEvidenceWriter.
- Parameters:
version
- aPsiXmlVersion
object.writer
- aWriter
object.- Throws:
XMLStreamException
- if any.
-
CompactXmlBinaryEvidenceWriter
public CompactXmlBinaryEvidenceWriter(PsiXmlVersion version, XMLStreamWriter streamWriter, PsiXmlObjectCache elementCache)
Constructor for CompactXmlBinaryEvidenceWriter.
- Parameters:
version
- aPsiXmlVersion
object.streamWriter
- aXMLStreamWriter
object.elementCache
- aPsiXmlObjectCache
object.
-
-
Method Detail
-
registerAvailabilities
protected void registerAvailabilities(BinaryInteractionEvidence interaction)
registerAvailabilities.
- Specified by:
registerAvailabilities
in classAbstractCompactXmlWriter<BinaryInteractionEvidence>
- Parameters:
interaction
- a T object.
-
registerExperiment
protected void registerExperiment(BinaryInteractionEvidence interaction)
registerExperiment.
- Specified by:
registerExperiment
in classAbstractCompactXmlWriter<BinaryInteractionEvidence>
- Parameters:
interaction
- a T object.
-
extractSourceFromInteraction
protected Source extractSourceFromInteraction()
extractSourceFromInteraction.
- Overrides:
extractSourceFromInteraction
in classAbstractXmlWriter<BinaryInteractionEvidence>
- Returns:
- a
Source
object.
-
initialiseSubWriters
protected void initialiseSubWriters()
initialiseSubWriters.
- Specified by:
initialiseSubWriters
in classAbstractXmlWriter<BinaryInteractionEvidence>
-
-