|
ShrinkWrap API 1.1.0-alpha-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.api.asset.UrlAsset
public class UrlAsset
Implementation of an Asset backed by a URL. The URL may be of any backing protocol supported by the
runtime (ie. has a handler registered).
| Constructor Summary | |
|---|---|
UrlAsset(URL url)
Create a new resource with a URL source. |
|
| Method Summary | |
|---|---|
URL |
getSource()
Returns the loaded URL. |
InputStream |
openStream()
Open the URL stream. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UrlAsset(URL url)
URL source.
url - A valid URL
IllegalArgumentException - URL can not be null| Method Detail |
|---|
public InputStream openStream()
URL stream.
openStream in interface Assetpublic URL getSource()
public String toString()
toString in class ObjectObject.toString()
|
ShrinkWrap API 1.1.0-alpha-2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||