org.wymiwyg.commons.util.dirbrowser
Class FilePathNode
java.lang.Object
org.wymiwyg.commons.util.dirbrowser.FilePathNode
- All Implemented Interfaces:
- PathNode
public class FilePathNode
- extends Object
- implements PathNode
- Author:
- reto
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilePathNode
public FilePathNode(String path)
- Parameters:
string -
FilePathNode
public FilePathNode(File file)
getSubPath
public PathNode getSubPath(String requestPath)
- Specified by:
getSubPath in interface PathNode
- Returns:
- See Also:
org.wymiwyg.rwcf.tools.fileserver.PathNode#getSubPath(java.lang.String)
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory in interface PathNode
- Returns:
- See Also:
org.wymiwyg.rwcf.tools.fileserver.PathNode#isDirectory()
list
public String[] list(PathNameFilter filter)
- Specified by:
list in interface PathNode
- Returns:
- See Also:
org.wymiwyg.rwcf.tools.fileserver.PathNode#list(org.wymiwyg.rwcf.tools.fileserver.PathNameFilter)
list
public String[] list()
- Specified by:
list in interface PathNode
- Returns:
- See Also:
org.wymiwyg.rwcf.tools.fileserver.PathNode#list()
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream in interface PathNode
- Returns:
-
- Throws:
IOException- See Also:
org.wymiwyg.rwcf.tools.fileserver.PathNode#getInputStream()
getLength
public long getLength()
- Specified by:
getLength in interface PathNode
- Returns:
- the size of the entry or -1
getPath
public String getPath()
- Specified by:
getPath in interface PathNode
- Returns:
- a slash separated string representation of this path
getLastModified
public Date getLastModified()
- Specified by:
getLastModified in interface PathNode
- Returns:
- the date of last modification, or if unavailable creation, or null
exists
public boolean exists()
- Specified by:
exists in interface PathNode
- Returns:
- true if the PathNode points to an existing entity.
Copyright © 2011. All Rights Reserved.