public abstract class AbstractResourcePath extends Object implements ResourcePath
ResourceResolver.util
Constructor and Description |
---|
AbstractResourcePath() |
Modifier and Type | Method and Description |
---|---|
URI |
canonicalize(URI resource) |
protected abstract boolean |
containsResource(URI resource) |
boolean |
equals(Object object) |
protected abstract URL |
getBasePath() |
int |
hashCode() |
protected abstract boolean |
isExecutable(URI resource) |
protected abstract boolean |
isUnpacking() |
protected Collection<URI> |
listResources() |
protected File |
makeUnpackDir()
Override if isUnpacking returns true
|
URL |
resolve(URI resource)
Resolve a resource from a URI.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getIdentifier
protected abstract boolean containsResource(URI resource)
resource:
- relative URIprotected Collection<URI> listResources()
protected abstract URL getBasePath()
protected abstract boolean isUnpacking()
protected File makeUnpackDir()
protected abstract boolean isExecutable(URI resource)
public URL resolve(URI resource)
resolve
in interface ResourceResolver
resource
- The URI can be one of the following:
- a relative URI, or
- an absolute URI that can be relativized against, or equal to:
- the BundledResourcePath's identifier,
- the BundledResourcePath's actual path in the bundle, or
- the directory where resources are unpacked.public URI canonicalize(URI resource)
canonicalize
in interface ResourcePath
Copyright © 2010–2024 The DAISY Consortium. All rights reserved.