
public class UrlResource extends AbstractResource
| Constructor and Description |
|---|
UrlResource(URL url,
String path,
long lastModified) |
| Modifier and Type | Method and Description |
|---|---|
ClassPathEntry |
getClassPathEntry()
Accesses the path root under which this resource was found.
|
long |
getLastModified()
Returns the last modified time of the compilation unit.
|
String |
getLocation()
Returns the URL-like location of the resource.
|
String |
getPath()
Returns the full abstract path of the resource.
|
InputStream |
openContents()
Returns the contents of the resource.
|
wasRerootedpublic ClassPathEntry getClassPathEntry()
AbstractResourcegetClassPathEntry in class AbstractResourcepublic long getLastModified()
ResourcegetLastModified in class Resourcepublic String getLocation()
ResourcegetLocation in class Resourcepublic String getPath()
Resourcepublic InputStream openContents() throws IOException
ResourceopenContents in class ResourceIOExceptionCopyright © 2018. All rights reserved.