Exemple #1
0
 private XmlFormatType loadDomainFromInputStream(InputStream in) throws IOException {
   BufferedInputStream fis = new BufferedInputStream(in);
   XmlFormatType xmlType = JAXBHandler.determineXmlType(fis);
   if (!xmlType.isValid() || xmlType.isFuture()) {
     return xmlType;
   } else if (xmlType.isLegacy()) {
     d_domainMgr.loadLegacyXMLDomain(fis);
   } else {
     d_domainMgr.loadXMLDomain(fis, xmlType.getVersion());
   }
   attachDomainChangedModel();
   return xmlType;
 }