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.URLurl
-
Constructor Summary
Constructors Constructor Description UrlAsset(java.net.URL url)Create a new resource with aURLsource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URLgetSource()Returns the loaded URL.java.io.InputStreamopenStream()Open theURLstream.java.lang.StringtoString()
-
-
-
Method Detail
-
openStream
public java.io.InputStream openStream()
Open theURLstream.- Specified by:
openStreamin 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:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-