org.ztemplates.web
Class ZClassPathItemResource

java.lang.Object
  extended by org.ztemplates.web.ZClassPathItemResource
All Implemented Interfaces:
org.zclasspath.ZIClassPathItem

public class ZClassPathItemResource
extends Object
implements org.zclasspath.ZIClassPathItem


Constructor Summary
ZClassPathItemResource()
           
ZClassPathItemResource(String name, ClassLoader classLoader)
           
 
Method Summary
 long getHash()
           
 InputStream getInputStream()
           
static List<org.zclasspath.ZIClassPathItem> getItems()
           
 String getName()
           
 String getRelativePath(org.zclasspath.ZIClassPathItem root)
           
 boolean isDirectory()
          isDirectory
 boolean isFile()
          isFile
 org.zclasspath.ZIClassPathItem[] list()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZClassPathItemResource

public ZClassPathItemResource(String name,
                              ClassLoader classLoader)

ZClassPathItemResource

public ZClassPathItemResource()
Method Detail

getItems

public static List<org.zclasspath.ZIClassPathItem> getItems()
                                                     throws Exception
Throws:
Exception

getHash

public long getHash()
             throws Exception
Specified by:
getHash in interface org.zclasspath.ZIClassPathItem
Throws:
Exception

getInputStream

public InputStream getInputStream()
                           throws Exception
Specified by:
getInputStream in interface org.zclasspath.ZIClassPathItem
Throws:
Exception

getName

public String getName()
               throws Exception
Specified by:
getName in interface org.zclasspath.ZIClassPathItem
Throws:
Exception

getRelativePath

public String getRelativePath(org.zclasspath.ZIClassPathItem root)
                       throws Exception
Specified by:
getRelativePath in interface org.zclasspath.ZIClassPathItem
Throws:
Exception

isDirectory

public boolean isDirectory()
isDirectory

Specified by:
isDirectory in interface org.zclasspath.ZIClassPathItem
Returns:
boolean

isFile

public boolean isFile()
isFile

Specified by:
isFile in interface org.zclasspath.ZIClassPathItem
Returns:
boolean

list

public org.zclasspath.ZIClassPathItem[] list()
                                      throws Exception
Specified by:
list in interface org.zclasspath.ZIClassPathItem
Throws:
Exception


Copyright © 2011. All Rights Reserved.