Package org.jboss.modules
Class URLResource
- java.lang.Object
-
- org.jboss.modules.URLResource
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.URL
url
-
Constructor Summary
Constructors Constructor Description URLResource(java.net.URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Get the relative resource name.long
getSize()
Get the size of the resource, if known.java.net.URL
getURL()
Get the complete URL of this resource.java.io.InputStream
openStream()
Open an input stream to this resource.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:Resource
Get the relative resource name.
-
getURL
public java.net.URL getURL()
Description copied from interface:Resource
Get the complete URL of this resource.
-
openStream
public java.io.InputStream openStream() throws java.io.IOException
Description copied from interface:Resource
Open an input stream to this resource.- Specified by:
openStream
in interfaceResource
- Returns:
- the stream
- Throws:
java.io.IOException
- if an I/O error occurs
-
-