public class URLResource extends AbstractIoResource<java.net.URL>
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Constructor and Description |
|---|
URLResource(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName() |
java.net.URL |
getURL() |
java.io.InputStream |
openInputStream() |
getResourceType, getResourceValue, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforResourcefindByName, getNameList, getNames, ofName, removeByNamepublic java.net.URL getURL()
public java.lang.String getName()
getName in interface NamedResourcegetName in class AbstractIoResource<java.net.URL>public java.io.InputStream openInputStream()
throws java.io.IOException
InputStream for the resource's datajava.io.IOException - If failed to open the stream