Constructor and Description |
---|
FsFilePath(File f,
DirectoryPath parent)
Builds a new instance.
|
Modifier and Type | Method and Description |
---|---|
File |
getFile()
Gets the file object.
|
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 FsFilePath(File f, DirectoryPath parent)
Builds a new instance. Throws a IllegalArgumentException
if the specified path does not represents a
path on the path system.
f
- the pathparent
- the parent, null
if this path is a rootpublic InputStream openStream() throws IOException
Opens a stream to the path represented by this path.
openStream
in interface FilePath
IOException
- if stream can't be openedpublic long getLastUpdate()
Gets the last update date of this path.
getLastUpdate
in interface Path
Copyright © 2012-2015. All Rights Reserved.