Package org.jboss.modules
Class URLResource
java.lang.Object
org.jboss.modules.URLResource
- All Implemented Interfaces:
Resource
-
Field Details
-
url
-
-
Constructor Details
-
URLResource
URLResource(URL url)
-
-
Method Details
-
getName
Description copied from interface:Resource
Get the relative resource name. -
getURL
Description copied from interface:Resource
Get the complete URL of this resource. -
openStream
Description copied from interface:Resource
Open an input stream to this resource.- Specified by:
openStream
in interfaceResource
- Returns:
- the stream
- Throws:
IOException
- if an I/O error occurs
-
getSize
public long getSize()Description copied from interface:Resource
Get the size of the resource, if known.
-