Package org.jboss.shrinkwrap.api.asset
Class UrlAsset
- java.lang.Object
-
- org.jboss.shrinkwrap.api.asset.UrlAsset
-
-
Field Summary
Fields Modifier and Type Field Description private java.net.URL
url
-
Constructor Summary
Constructors Constructor Description UrlAsset(java.net.URL url)
Create a new resource with aURL
source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URL
getSource()
Returns the loaded URL.java.io.InputStream
openStream()
Open theURL
stream.java.lang.String
toString()
-
-
-
Method Detail
-
openStream
public java.io.InputStream openStream()
Open theURL
stream.- Specified by:
openStream
in interfaceAsset
- Returns:
- A open stream with the content of the URL
-
getSource
public java.net.URL getSource()
Returns the loaded URL.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-