Class MultipleAlignmentXMLParser


  • public class MultipleAlignmentXMLParser
    extends java.lang.Object
    Parse an XML file representing a MultipleAlignmentEnsemble, so that the original alignment can be recovered.

    Atoms need to be downloaded, either manually or using the method getAtomArrays() in MultipleAlignmentEnsemble.

    Since:
    4.1.1
    Author:
    Aleix Lafita
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<MultipleAlignmentEnsemble> parseXMLfile​(java.lang.String xml)
      Creates a list of MultipleAlignment ensembles from an XML file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultipleAlignmentXMLParser

        public MultipleAlignmentXMLParser()
    • Method Detail

      • parseXMLfile

        public static java.util.List<MultipleAlignmentEnsemble> parseXMLfile​(java.lang.String xml)
                                                                      throws javax.xml.parsers.ParserConfigurationException,
                                                                             org.xml.sax.SAXException,
                                                                             java.io.IOException
        Creates a list of MultipleAlignment ensembles from an XML file. This recovers only the information that was previously stored. If the Atoms are needed, the method getAtomArrays() will automatically download the structures from the stored structure identifiers.
        Parameters:
        xml - String XML file containing any number of ensembles
        Returns:
        List of ensembles in the file
        Throws:
        javax.xml.parsers.ParserConfigurationException
        org.xml.sax.SAXException
        java.io.IOException