org.objectweb.jac.aspects.gui.web
Class ClasspathResource

java.lang.Object
  |
  +--org.mortbay.util.Resource
        |
        +--org.objectweb.jac.aspects.gui.web.ClasspathResource
All Implemented Interfaces:
Serializable

public class ClasspathResource
extends Resource

See Also:
Serialized Form

Constructor Summary
ClasspathResource()
           
ClasspathResource(String path)
           
 
Method Summary
 Resource addPath(String addedPath)
           
 boolean delete()
           
 boolean exists()
           
 File getFile()
           
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 URL getURL()
           
 boolean isDirectory()
           
 long lastModified()
           
 long length()
           
 String[] list()
           
 void release()
           
 boolean renameTo(Resource newName)
           
 String toString()
           
 
Methods inherited from class org.mortbay.util.Resource
cache, encode, finalize, getAssociate, newResource, newResource, newSystemResource, setAssociate, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClasspathResource

public ClasspathResource(String path)
                  throws IOException

ClasspathResource

public ClasspathResource()
Method Detail

release

public void release()
Specified by:
release in class Resource

exists

public boolean exists()
Specified by:
exists in class Resource

isDirectory

public boolean isDirectory()
Specified by:
isDirectory in class Resource

lastModified

public long lastModified()
Specified by:
lastModified in class Resource

length

public long length()
Specified by:
length in class Resource

getURL

public URL getURL()
Specified by:
getURL in class Resource

getFile

public File getFile()
Specified by:
getFile in class Resource

getName

public String getName()
Specified by:
getName in class Resource

getInputStream

public InputStream getInputStream()
Specified by:
getInputStream in class Resource

getOutputStream

public OutputStream getOutputStream()
Specified by:
getOutputStream in class Resource

delete

public boolean delete()
Specified by:
delete in class Resource

renameTo

public boolean renameTo(Resource newName)
Specified by:
renameTo in class Resource

list

public String[] list()
Specified by:
list in class Resource

addPath

public Resource addPath(String addedPath)
                 throws IOException
Specified by:
addPath in class Resource
IOException

toString

public String toString()
Overrides:
toString in class Object