Top Description Constructors Methods
org.codehaus.commons.compiler.util.resource

public final Class ResourceFinders

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.net.URL, java.util.ArrayList, .Collection, .Iterator, .Map, .Map.Entry, org.codehaus.commons.compiler.lang.ClassLoaders, org.codehaus.commons.nullanalysis.Nullable

Utility methods around the ResourceFinder.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static ResourceFinder
public static ResourceFinder
public static ListableResourceFinder

Returns:

Finds resources via classLoader.getResource(); all found resources are LocatableResources
fromClassLoader
(final ClassLoader classLoader)

private static LocatableResource
resourceFromUrl(final URL url, final String resourceName)

private static <T> String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ResourceFindersback to summary
private ResourceFinders()

Method Detail

debugListableResourceFinderback to summary
private static ResourceFinder debugListableResourceFinder(final ListableResourceFinder delegate)
debugResourceFinderback to summary
public static ResourceFinder debugResourceFinder(final ResourceFinder delegate)
fromClassLoaderback to summary
public static ListableResourceFinder fromClassLoader(final ClassLoader classLoader)
Returns:ListableResourceFinder

Finds resources via classLoader.getResource(); all found resources are LocatableResources

resourceFromUrlback to summary
private static LocatableResource resourceFromUrl(final URL url, final String resourceName)
toStringback to summary
private static <T> String toString(Iterable<T> i)