Package eu.planets_project.services.datatypes

Examples of eu.planets_project.services.datatypes.DigitalObject.toXml()


          /* Create the content: */
          DigitalObjectContent c1 = Content.byReference(purl.toURL());
          /* Given these, we can instantiate our object: */
          DigitalObject object = new DigitalObject.Builder(digitalObject).permanentUri(pdURI).content(c1).build();
      OutputStream outStream = new FileOutputStream(doMetadata);
      outStream.write(object.toXml().getBytes());
      outStream.close();
    } catch (UnsupportedEncodingException e) {
      log.severe("Unsupported encodeing exception");
      log.severe(e.getMessage());
      log.severe(e.getStackTrace().toString());
View Full Code Here


      throws DigitalObjectNotStoredException
    {
    try {

      DigitalObject dobj = store(pdURI, digitalObject, true);
      _log.log(Level.INFO, dobj.toXml())
     
    } catch (Exception _exp) {
      _log.log(Level.INFO, "Couldn't store Digital Object: ",_exp);
      throw new DigitalObjectNotStoredException("Couldn't store Digital Object", _exp);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.