Modifier and Type | Field and Description |
---|---|
private java.net.URL |
url |
Constructor and Description |
---|
UrlAsset(java.net.URL url)
Create a new resource with a
URL source. |
Modifier and Type | Method and Description |
---|---|
java.net.URL |
getSource()
Returns the loaded URL.
|
java.io.InputStream |
openStream()
Open the
URL stream. |
java.lang.String |
toString() |
public UrlAsset(java.net.URL url)
URL
source.url
- A valid URLjava.lang.IllegalArgumentException
- URL
can not be nullpublic java.io.InputStream openStream()
URL
stream.openStream
in interface Asset
public java.net.URL getSource()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()