public class FileResource extends AbstractResource
Constructor and Description |
---|
FileResource(DirectoryClassPathEntry classPathEntry,
String abstractPathName,
File file) |
Modifier and Type | Method and Description |
---|---|
DirectoryClassPathEntry |
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.
|
wasRerooted
public FileResource(DirectoryClassPathEntry classPathEntry, String abstractPathName, File file)
public DirectoryClassPathEntry getClassPathEntry()
AbstractResource
getClassPathEntry
in class AbstractResource
public long getLastModified()
Resource
getLastModified
in class Resource
public String getLocation()
Resource
getLocation
in class Resource
public String getPath()
Resource
public InputStream openContents() throws IOException
Resource
openContents
in class Resource
IOException
Copyright © 2018. All rights reserved.