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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forResource
findByName, getNameList, getNames, ofName, removeByName
public java.net.URL getURL()
public java.lang.String getName()
getName
in interface NamedResource
getName
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