Beispiel #1
0
 @Override
 public void read(InputStream in) throws IllegalArgumentException {
   try {
     Unmarshaller unMarsh =
         org.orbisgis.coremap.map.JaxbContainer.JAXBCONTEXT.createUnmarshaller();
     JAXBElement<OWSContextType> importedOwsContextType =
         (JAXBElement<OWSContextType>) unMarsh.unmarshal(in);
     setJAXBObject(importedOwsContextType.getValue());
   } catch (JAXBException ex) {
     throw new IllegalArgumentException(I18N.tr("Unable to read the provided map context"), ex);
   }
 }