public interface ResourceOracle
Resource
s by abstract path
name. Intuitively, it works like a jar in that each URL is uniquely located
somewhere in an abstract namespace. The abstract names must be constructed
from a series of zero or more valid Java identifiers followed by the '/'
character and finally ending in a valid filename, for example,
com/google/gwt/blah.txt
.
The identity of the returned sets and maps will change when the underlying module is refreshed.
Modifier and Type | Method and Description |
---|---|
void |
clear()
Frees up all existing resources and transient internal state.
|
Set<String> |
getPathNames()
Returns an unmodifiable set of unique abstract path names with constant
lookup time.
|
Resource |
getResource(String pathName)
Returns the resource for the given path name or null if there is no such resource.
|
InputStream |
getResourceAsStream(String pathName)
Returns the resource input stream for the given path name or null if there
is no such resource.
|
Set<Resource> |
getResources()
Returns an unmodifiable set of unique resources with constant lookup time.
|
void clear()
Set<String> getPathNames()
Resource getResource(String pathName)
InputStream getResourceAsStream(String pathName)
Copyright © 2018. All rights reserved.