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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAbsolutePath, getName, getParent
public 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 Path
IOException
- 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 FilePath
IOException
- if stream can't be openedCopyright © 2012-2015. All Rights Reserved.