Class XmlParser

  • All Implemented Interfaces:
    PsiXmlParser<Interaction>

    public class XmlParser
    extends AbstractPsiXmlParser<Interaction>
    Parser generating interaction objects that can be interaction evidences or abstract interactions.
    Since:
    16/10/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • XmlParser

        public XmlParser​(File file)

        Constructor for XmlParser.

        Parameters:
        file - a File object.
      • XmlParser

        public XmlParser​(InputStream inputStream)

        Constructor for XmlParser.

        Parameters:
        inputStream - a InputStream object.
      • XmlParser

        public XmlParser​(URL url)

        Constructor for XmlParser.

        Parameters:
        url - a URL object.
      • XmlParser

        public XmlParser​(Reader reader)

        Constructor for XmlParser.

        Parameters:
        reader - a Reader object.
    • Method Detail

      • createJAXBUnmarshaller

        protected javax.xml.bind.Unmarshaller createJAXBUnmarshaller()
                                                              throws javax.xml.bind.JAXBException

        createJAXBUnmarshaller.

        Specified by:
        createJAXBUnmarshaller in class AbstractPsiXmlParser<Interaction>
        Returns:
        the unmarshaller with the class context
        Throws:
        javax.xml.bind.JAXBException - if any.