All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.daisy.pipeline.braille.common.ResourceResolver Maven / Gradle / Ivy

The newest version!
package org.daisy.pipeline.braille.common;

import java.net.URI;
import java.net.URL;

public interface ResourceResolver {
	
	/**
	 * Resolve a resource from a URI.
	 * @param resource
	 * @return The resolved URL, or null if the resource cannot be resolved.
	 */
	public URL resolve(URI resource);
	
	/* ================== */
	/*       UTILS        */
	/* ================== */
	
	public static abstract class util {
		
		public static abstract class MemoizingResolver extends Memoizing.util.AbstractMemoizing implements ResourceResolver {
			public URL resolve(URI resource) {
				return apply(resource);
			}
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy