| Modifier and Type | Field and Description |
|---|---|
private java.net.URL |
url |
| Constructor and Description |
|---|
URLResource(java.net.URL url) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Get the relative resource name.
|
long |
getSize()
Get the size of the resource, if known.
|
java.net.URL |
getURL()
Get the complete URL of this resource.
|
java.io.InputStream |
openStream()
Open an input stream to this resource.
|
public java.lang.String getName()
Resourcepublic java.net.URL getURL()
Resourcepublic java.io.InputStream openStream()
throws java.io.IOException
ResourceopenStream in interface Resourcejava.io.IOException - if an I/O error occurs