Class LightCompactXmlNamedBinaryWriter
- java.lang.Object
-
- psidev.psi.mi.jami.xml.io.writer.AbstractXmlWriter<T>
-
- psidev.psi.mi.jami.xml.io.writer.compact.AbstractCompactXmlWriter<BinaryInteraction>
-
- psidev.psi.mi.jami.xml.io.writer.compact.LightCompactXmlNamedBinaryWriter
-
- All Implemented Interfaces:
InteractionWriter<BinaryInteraction>
public class LightCompactXmlNamedBinaryWriter extends AbstractCompactXmlWriter<BinaryInteraction>
Compact PSI-XML writer for light binary interactions (no experimental evidences) having names. Participants, experiments and features are also assumed to have expanded names- Since:
19/11/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Constructor Summary
Constructors Constructor Description LightCompactXmlNamedBinaryWriter(PsiXmlVersion version)
Constructor for LightCompactXmlNamedBinaryWriter.LightCompactXmlNamedBinaryWriter(PsiXmlVersion version, File file)
Constructor for LightCompactXmlNamedBinaryWriter.LightCompactXmlNamedBinaryWriter(PsiXmlVersion version, OutputStream output)
Constructor for LightCompactXmlNamedBinaryWriter.LightCompactXmlNamedBinaryWriter(PsiXmlVersion version, Writer writer)
Constructor for LightCompactXmlNamedBinaryWriter.LightCompactXmlNamedBinaryWriter(PsiXmlVersion version, XMLStreamWriter streamWriter, PsiXmlObjectCache cache)
Constructor for LightCompactXmlNamedBinaryWriter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
initialiseSubWriters()
initialiseSubWriters.protected void
registerAvailabilities(BinaryInteraction interaction)
registerAvailabilities.protected void
registerExperiment(BinaryInteraction 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, extractSourceFromInteraction, 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
-
LightCompactXmlNamedBinaryWriter
public LightCompactXmlNamedBinaryWriter(PsiXmlVersion version)
Constructor for LightCompactXmlNamedBinaryWriter.
- Parameters:
version
- aPsiXmlVersion
object.
-
LightCompactXmlNamedBinaryWriter
public LightCompactXmlNamedBinaryWriter(PsiXmlVersion version, File file) throws IOException, XMLStreamException
Constructor for LightCompactXmlNamedBinaryWriter.
- Parameters:
version
- aPsiXmlVersion
object.file
- aFile
object.- Throws:
IOException
- if any.XMLStreamException
- if any.
-
LightCompactXmlNamedBinaryWriter
public LightCompactXmlNamedBinaryWriter(PsiXmlVersion version, OutputStream output) throws XMLStreamException
Constructor for LightCompactXmlNamedBinaryWriter.
- Parameters:
version
- aPsiXmlVersion
object.output
- aOutputStream
object.- Throws:
XMLStreamException
- if any.
-
LightCompactXmlNamedBinaryWriter
public LightCompactXmlNamedBinaryWriter(PsiXmlVersion version, Writer writer) throws XMLStreamException
Constructor for LightCompactXmlNamedBinaryWriter.
- Parameters:
version
- aPsiXmlVersion
object.writer
- aWriter
object.- Throws:
XMLStreamException
- if any.
-
LightCompactXmlNamedBinaryWriter
public LightCompactXmlNamedBinaryWriter(PsiXmlVersion version, XMLStreamWriter streamWriter, PsiXmlObjectCache cache)
Constructor for LightCompactXmlNamedBinaryWriter.
- Parameters:
version
- aPsiXmlVersion
object.streamWriter
- aXMLStreamWriter
object.cache
- aPsiXmlObjectCache
object.
-
-
Method Detail
-
registerAvailabilities
protected void registerAvailabilities(BinaryInteraction interaction)
registerAvailabilities.
- Specified by:
registerAvailabilities
in classAbstractCompactXmlWriter<BinaryInteraction>
- Parameters:
interaction
- a T object.
-
registerExperiment
protected void registerExperiment(BinaryInteraction interaction)
registerExperiment.
- Specified by:
registerExperiment
in classAbstractCompactXmlWriter<BinaryInteraction>
- Parameters:
interaction
- a T object.
-
initialiseSubWriters
protected void initialiseSubWriters()
initialiseSubWriters.
- Specified by:
initialiseSubWriters
in classAbstractXmlWriter<BinaryInteraction>
-
-