DataResource
is a simple resource that provides access to data. All
DataResource
s will implement the {@link #getInputStream()} method to provideaccess to their data.
DataResource
s may optionally implement {@link #getUrl()}, which would return the URL where the data is located. This may be necessary for some applications, but it is strongly recommended the {@link #getInputStream()} be used whenever possible, because accessing the datadirectly via the URL does not allow the ResourceManager to assist in caching or sharing of data.