org.wymiwyg.commons.util.dirbrowser
Class MultiPathNode

java.lang.Object
  extended by org.wymiwyg.commons.util.dirbrowser.MultiPathNode
All Implemented Interfaces:
PathNode

public class MultiPathNode
extends Object
implements PathNode

Author:
reto

Constructor Summary
MultiPathNode(PathNode... nodes)
           
 
Method Summary
 boolean exists()
           
 InputStream getInputStream()
           
 Date getLastModified()
           
 long getLength()
           
 String getPath()
           
 PathNode getSubPath(String requestPath)
           
 boolean isDirectory()
           
 String[] list()
           
 String[] list(PathNameFilter filter)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiPathNode

public MultiPathNode(PathNode... nodes)
Method Detail

getSubPath

public PathNode getSubPath(String requestPath)
Specified by:
getSubPath in interface PathNode
Returns:
See Also:
PathNode.getSubPath(java.lang.String)

isDirectory

public boolean isDirectory()
Specified by:
isDirectory in interface PathNode
Returns:
See Also:
PathNode.isDirectory()

list

public String[] list(PathNameFilter filter)
Specified by:
list in interface PathNode
Returns:
See Also:
PathNode.list(org.wymiwyg.commons.util.dirbrowser.PathNameFilter)

list

public String[] list()
Specified by:
list in interface PathNode
Returns:
See Also:
PathNode.list()

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface PathNode
Returns:
Throws:
IOException
See Also:
PathNode.getInputStream()

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getLength

public long getLength()
Specified by:
getLength in interface PathNode
Returns:
the size of the entry or -1
See Also:
PathNode.getLength()

getPath

public String getPath()
Specified by:
getPath in interface PathNode
Returns:
the longest common subpath of the nodes this MultiPathNOde consists of

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.