Class FullXmlParser

  • All Implemented Interfaces:
    FullPsiXmlParser<Interaction>, PsiXmlParser<Interaction>

    public class FullXmlParser
    extends AbstractFullPsiXmlParser<Interaction>
    Full Parser generating interaction objects that could be a mix or abstract interactions and interaction evidences. It will load the all entrySet so is consuming a lot of memory in case of large files but is very performant for small files
    Since:
    08/11/13
    Version:
    $Id$
    Author:
    Marine Dumousseau (marine@ebi.ac.uk)
    • Constructor Detail

      • FullXmlParser

        public FullXmlParser​(File file)
                      throws javax.xml.bind.JAXBException,
                             FileNotFoundException

        Constructor for FullXmlParser.

        Parameters:
        file - a File object.
        Throws:
        javax.xml.bind.JAXBException - if any.
        FileNotFoundException - if any.
      • FullXmlParser

        public FullXmlParser​(InputStream inputStream)
                      throws javax.xml.bind.JAXBException

        Constructor for FullXmlParser.

        Parameters:
        inputStream - a InputStream object.
        Throws:
        javax.xml.bind.JAXBException - if any.
      • FullXmlParser

        public FullXmlParser​(URL url)
                      throws IOException,
                             javax.xml.bind.JAXBException

        Constructor for FullXmlParser.

        Parameters:
        url - a URL object.
        Throws:
        IOException - if any.
        javax.xml.bind.JAXBException - if any.
      • FullXmlParser

        public FullXmlParser​(Reader reader)
                      throws javax.xml.bind.JAXBException

        Constructor for FullXmlParser.

        Parameters:
        reader - a Reader object.
        Throws:
        javax.xml.bind.JAXBException - if any.
    • Method Detail

      • createJAXBUnmarshaller

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

        createJAXBUnmarshaller.

        Specified by:
        createJAXBUnmarshaller in class AbstractFullPsiXmlParser<Interaction>
        Returns:
        a Unmarshaller object.
        Throws:
        javax.xml.bind.JAXBException - if any.