Constructor and Description |
---|
UrlAsset(URL url)
Create a new resource with a
URL source. |
Modifier and Type | Method and Description |
---|---|
URL |
getSource()
Returns the loaded URL.
|
InputStream |
openStream()
Open the
URL stream. |
String |
toString() |
public UrlAsset(URL url)
URL
source.url
- A valid URLIllegalArgumentException
- URL
can not be nullpublic InputStream openStream()
URL
stream.openStream
in interface Asset
public URL getSource()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2016 JBoss by Red Hat. All rights reserved.