Class LightXmlStreamSource
- java.lang.Object
-
- psidev.psi.mi.jami.xml.model.extension.datasource.AbstractPsiXmlStream<Interaction>
-
- psidev.psi.mi.jami.xml.model.extension.datasource.LightXmlStreamSource
-
- All Implemented Interfaces:
ErrorHandler
,InteractionStream<Interaction>
,MIDataSource
,MIFileDataSource
,MIFileParserListener
,PsiXmlParserListener
,PsiXmlStreamSource<Interaction>
public class LightXmlStreamSource extends AbstractPsiXmlStream<Interaction>
Datasource for PSI-xml returning basic interactions- Since:
17/10/13
- Version:
- $Id$
- Author:
- Marine Dumousseau (marine@ebi.ac.uk)
-
-
Field Summary
-
Fields inherited from class psidev.psi.mi.jami.xml.model.extension.datasource.AbstractPsiXmlStream
SCHEMA_FEATURE, VALIDATION_FEATURE
-
Fields inherited from interface psidev.psi.mi.jami.datasource.MIFileDataSource
FILE_URI_PREFIX, URL_PREFIX_REGEXP
-
-
Constructor Summary
Constructors Constructor Description LightXmlStreamSource()
Constructor for LightXmlStreamSource.LightXmlStreamSource(File file)
Constructor for LightXmlStreamSource.LightXmlStreamSource(InputStream input)
Constructor for LightXmlStreamSource.LightXmlStreamSource(Reader reader)
Constructor for LightXmlStreamSource.LightXmlStreamSource(URL url)
Constructor for LightXmlStreamSource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Iterator<Interaction>
createXmlIterator()
createXmlIterator.protected void
initialiseExpansionMethod(ComplexExpansionMethod<? extends Interaction,? extends BinaryInteraction> expansionMethod)
initialiseExpansionMethod.protected void
initialiseXmlParser(File file)
initialiseXmlParser.protected void
initialiseXmlParser(InputStream input)
initialiseXmlParser.protected void
initialiseXmlParser(Reader reader)
initialiseXmlParser.protected void
initialiseXmlParser(URL url)
initialiseXmlParser.-
Methods inherited from class psidev.psi.mi.jami.xml.model.extension.datasource.AbstractPsiXmlStream
close, error, fatalError, getElementCache, getFileParserListener, getInteractionsIterator, getInteractorFactory, getParser, initialiseContext, isInitialised, onAliasWithoutName, onAnnotationWithoutTopic, onInteractionWithoutParticipants, onInvalidOrganismTaxid, onInvalidPosition, onInvalidRange, onInvalidStoichiometry, onInvalidSyntax, onMissingChecksumMethod, onMissingChecksumValue, onMissingConfidenceType, onMissingConfidenceValue, onMissingCvTermName, onMissingInteractorName, onMissingParameterType, onMissingParameterValue, onParticipantWithoutInteractor, onSeveralExperimentalRolesFound, onSeveralExperimentsFound, onSeveralExpressedInOrganismFound, onSeveralHostOrganismFound, onSyntaxWarning, onUnresolvedReference, onXrefWithoutDatabase, onXrefWithoutId, reInit, reset, setFileParserListener, setInteractorFactory, setMIFileParserListener, setParser, setXmlFileParserListener, validateSyntax, validateSyntax, warning
-
-
-
-
Constructor Detail
-
LightXmlStreamSource
public LightXmlStreamSource()
Constructor for LightXmlStreamSource.
-
LightXmlStreamSource
public LightXmlStreamSource(File file)
Constructor for LightXmlStreamSource.
- Parameters:
file
- aFile
object.
-
LightXmlStreamSource
public LightXmlStreamSource(InputStream input)
Constructor for LightXmlStreamSource.
- Parameters:
input
- aInputStream
object.
-
LightXmlStreamSource
public LightXmlStreamSource(Reader reader)
Constructor for LightXmlStreamSource.
- Parameters:
reader
- aReader
object.
-
-
Method Detail
-
initialiseXmlParser
protected void initialiseXmlParser(Reader reader)
initialiseXmlParser.
- Specified by:
initialiseXmlParser
in classAbstractPsiXmlStream<Interaction>
- Parameters:
reader
- aReader
object.
-
initialiseXmlParser
protected void initialiseXmlParser(File file)
initialiseXmlParser.
- Specified by:
initialiseXmlParser
in classAbstractPsiXmlStream<Interaction>
- Parameters:
file
- aFile
object.
-
initialiseXmlParser
protected void initialiseXmlParser(InputStream input)
initialiseXmlParser.
- Specified by:
initialiseXmlParser
in classAbstractPsiXmlStream<Interaction>
- Parameters:
input
- aInputStream
object.
-
initialiseXmlParser
protected void initialiseXmlParser(URL url)
initialiseXmlParser.
- Specified by:
initialiseXmlParser
in classAbstractPsiXmlStream<Interaction>
- Parameters:
url
- aURL
object.
-
initialiseExpansionMethod
protected void initialiseExpansionMethod(ComplexExpansionMethod<? extends Interaction,? extends BinaryInteraction> expansionMethod)
initialiseExpansionMethod.
- Specified by:
initialiseExpansionMethod
in classAbstractPsiXmlStream<Interaction>
- Parameters:
expansionMethod
- aComplexExpansionMethod
object.
-
createXmlIterator
protected Iterator<Interaction> createXmlIterator()
createXmlIterator.
- Specified by:
createXmlIterator
in classAbstractPsiXmlStream<Interaction>
- Returns:
- a
Iterator
object.
-
-