Interface ContentResolver
- All Known Implementing Classes:
ResolverForClasspath,ResolverForFilesystem,ResolverForNBIOCache,ResolverForURL,URIResolver
public interface ContentResolver
-
Method Summary
Modifier and TypeMethodDescriptionLocate the content referenced by the specified name.resolveDirectory(String uri) resolveDirectory(URI uri) Return a list of matching directory Paths for theURIwhich are accessible under the scheme of the implementing resolver.
-
Method Details
-
resolve
Locate the content referenced by the specified name. Content is any URL or file path which contains data to be loaded.Implementors should take care to ensure the following conditions are met:
- For URL style content, resolution is only successful if a stream to download the content is acquired.
- For file paths, resolution is only successful if the filesystem does a standard access check for readability of a file that is present.
- Parameters:
uri- The URI of a content location, like a file name or URL.- Returns:
- A content element which may then be used to access the content
-
resolve
-
resolveDirectory
Return a list of matching directory Paths for theURIwhich are accessible under the scheme of the implementing resolver. It is possible that a logical path can return more than one physical directory path, such as with jar files.- Parameters:
uri-- Returns:
- A list of accessible paths matching the uri, or an empty list
-
resolveDirectory
-