Interface Resource
- All Known Implementing Classes:
FileEntryResource, JarEntryResource, URLResource
public interface Resource
A single resource from a
ResourceLoader.-
Method Details
-
getName
-
getURL
-
openStream
Open an input stream to this resource.- Returns:
- the stream
- Throws:
IOException- if an I/O error occurs
-
getSize
long getSize()Get the size of the resource, if known.- Returns:
- the size, or 0L if unknown
-