public XStreamMarshallingFailureException(StreamException ex) { super("XStream marshalling exception: " + ex.getMessage(), ex); }
@Override public DcsManifestation buildManifestation(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final DcsManifestation man; try { man = (DcsManifestation) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return man; }
@Override public DcsFile buildFile(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final DcsFile file; try { file = (DcsFile) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return file; }
@Override public Relation buildRelation(InputStream in) throws InvalidXmlException{ Assertion.notNull(in); final Relation relation; try { relation = (Relation) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return relation; }
@Override public DcsFile buildFile(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final DcsFile file; try { file = (DcsFile) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return file; }
@Override public DcsCollection buildCollection(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final DcsCollection c; try { c = (DcsCollection)x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return c; }
@Override public Person buildPerson(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final Person person; try { person = (Person) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return person; }
@Override public Dcp buildSip(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final Dcp sip; try { sip = (Dcp) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return sip; }
@Override public GQMList buildGQMList(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final GQMList gqms; try { gqms = (GQMList) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return gqms; }
@Override public Point buildPoint(InputStream in) throws InvalidXmlException{ Assertion.notNull(in); final Point point; try { point = (Point) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return point; }
@Override public GQM buildGQM(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final GQM gqm; try { gqm = (GQM) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return gqm; }
@Override public Geometry buildGeometry(InputStream in) throws InvalidXmlException{ Assertion.notNull(in); final Geometry geometry; try { geometry = (Geometry) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return geometry; }
@Override public DateTimeInterval buildDateTimeInterval(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final DateTimeInterval dti; try { dti = (DateTimeInterval) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return dti; }
@Override public Location buildLocation(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final Location location; try { location = (Location) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return location; }
@Override public DcsDeliverableUnit buildDeliverableUnit(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final DcsDeliverableUnit du; try { du = (DcsDeliverableUnit) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return du; }
@Override public DcsDeliverableUnit buildDeliverableUnit(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final DcsDeliverableUnit du; try { du = (DcsDeliverableUnit) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return du; }
@Override public DcsManifestation buildManifestation(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final DcsManifestation man; try { man = (DcsManifestation) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return man; }
@Override public DcsCollection buildCollection(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final DcsCollection c; try { c = (DcsCollection)x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return c; }
@Override public Project buildProject(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final Project project; try { project = (Project) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return project; }
@Override public Project buildProject(InputStream in) throws InvalidXmlException { Assertion.notNull(in); final Project project; try { project = (Project) x.fromXML(in); } catch (StreamException e) { log.debug(String.format(DESER_ERR, e.getMessage()), e); throw new InvalidXmlException(e); } return project; }