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()
Resource
public java.net.URL getURL()
Resource
public java.io.InputStream openStream() throws java.io.IOException
Resource
openStream
in interface Resource
java.io.IOException
- if an I/O error occurs