public class WebappFilePath extends SimplePath implements FilePath
Represents a file in the war file.
| Constructor and Description |
|---|
WebappFilePath(String n,
DirectoryPath dp,
ServletContext context)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getLastUpdate()
Gets the last update date of this path.
|
InputStream |
openStream()
Opens a stream to the path represented by this path.
|
getAbsolutePath, getName, getParent, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAbsolutePath, getName, getParentpublic WebappFilePath(String n, DirectoryPath dp, ServletContext context)
Creates a new instance.
n - the namedp - the parentcontext - the servlet context used to access nut's streampublic long getLastUpdate()
throws IOException
Gets the last update date of this path.
getLastUpdate in interface PathIOException - if an I/O error occurs while accessing path datapublic InputStream openStream() throws IOException
Opens a stream to the path represented by this path.
openStream in interface FilePathIOException - if stream can't be openedCopyright © 2012-2015. All Rights Reserved.