Package org.jboss.modules
Interface Resource
-
public interface ResourceA single resource from aResourceLoader.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()Get the relative resource name.longgetSize()Get the size of the resource, if known.java.net.URLgetURL()Get the complete URL of this resource.java.io.InputStreamopenStream()Open an input stream to this resource.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Get the relative resource name.- Returns:
- the name
-
getURL
java.net.URL getURL()
Get the complete URL of this resource.- Returns:
- the URL
-
openStream
java.io.InputStream openStream() throws java.io.IOExceptionOpen an input stream to this resource.- Returns:
- the stream
- Throws:
java.io.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
-
-