Code example for URI

Methods: getPathtoStringtoURL

0
	 */ 
	public DigitalObject retrieve(URI pdURI) throws DigitalObjectNotFoundException {
		try { 
			// Will simply attempt to download the object at the provided URI, 
			// no matter whether located at the NASA mirror or not 
            DigitalObject.Builder dob = new DigitalObject.Builder(Content.byReference(pdURI.toURL()));
            dob.title( PDURI.extractLeafname( pdURI.getPath() ) );
            return dob.build();
		} catch (Exception e) {
			throw new DigitalObjectNotFoundException("Error retrieving object from " + pdURI.toString() + " (" + e.getMessage() + ")");
		} 
	} 
 
	/** 
	 * {@inheritDoc} 
	 * @see eu.planets_project.ifr.core.storage.api.DigitalObjectManager#getQueryTypes() 
	 */ 
	public List<Class<? extends Query>> getQueryTypes() {
		return null; 
	}