|
|||||||||
| Home >> All >> jac >> aspects >> gui >> [ web overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
jac.aspects.gui.web
Class ClasspathResource

java.lang.Objectorg.mortbay.util.Resource
jac.aspects.gui.web.ClasspathResource
- All Implemented Interfaces:
- java.io.Serializable
- public class ClasspathResource
- extends org.mortbay.util.Resource
| Field Summary | |
(package private) java.io.File |
file
|
(package private) long |
lastModified
|
(package private) java.lang.String |
path
|
| Fields inherited from class org.mortbay.util.Resource |
|
| Constructor Summary | |
ClasspathResource()
|
|
ClasspathResource(java.lang.String path)
|
|
| Method Summary | |
org.mortbay.util.Resource |
addPath(java.lang.String addedPath)
Returns the resource contained inside the current resource with the given name. |
boolean |
delete()
Deletes the given resource |
boolean |
exists()
Returns true if the respresened resource exists. |
java.io.File |
getFile()
Returns an File representing the given resource or NULL if this is not possible. |
java.io.InputStream |
getInputStream()
Returns an input stream to the resource |
java.lang.String |
getName()
Returns the name of the resource |
java.io.OutputStream |
getOutputStream()
Returns an output stream to the resource |
java.net.URL |
getURL()
Returns an URL representing the given resource |
boolean |
isDirectory()
Returns true if the respresenetd resource is a container/directory. |
long |
lastModified()
Returns the last modified time |
long |
length()
Return the length of the resource |
java.lang.String[] |
list()
Returns a list of resource names contained in the given resource The resource names are not URL encoded. |
void |
release()
Release any resources held by the resource. |
boolean |
renameTo(org.mortbay.util.Resource newName)
Rename the given resource |
java.lang.String |
toString()
Convert this Object to a human-readable String. |
| Methods inherited from class org.mortbay.util.Resource |
cache, encode, finalize, getAlias, getAssociate, getListHTML, newResource, newResource, newSystemResource, setAssociate, writeTo |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
lastModified
long lastModified
path
java.lang.String path
file
java.io.File file
| Constructor Detail |
ClasspathResource
public ClasspathResource(java.lang.String path)
ClasspathResource
public ClasspathResource()
| Method Detail |
release
public void release()
- Description copied from class:
org.mortbay.util.Resource - Release any resources held by the resource.
exists
public boolean exists()
- Description copied from class:
org.mortbay.util.Resource - Returns true if the respresened resource exists.
isDirectory
public boolean isDirectory()
- Description copied from class:
org.mortbay.util.Resource - Returns true if the respresenetd resource is a container/directory.
If the resource is not a file, resources ending with "/" are
considered directories.
lastModified
public long lastModified()
- Description copied from class:
org.mortbay.util.Resource - Returns the last modified time
length
public long length()
- Description copied from class:
org.mortbay.util.Resource - Return the length of the resource
getURL
public java.net.URL getURL()
- Description copied from class:
org.mortbay.util.Resource - Returns an URL representing the given resource
getFile
public java.io.File getFile()
- Description copied from class:
org.mortbay.util.Resource - Returns an File representing the given resource or NULL if this
is not possible.
getName
public java.lang.String getName()
- Description copied from class:
org.mortbay.util.Resource - Returns the name of the resource
getInputStream
public java.io.InputStream getInputStream()
- Description copied from class:
org.mortbay.util.Resource - Returns an input stream to the resource
getOutputStream
public java.io.OutputStream getOutputStream()
- Description copied from class:
org.mortbay.util.Resource - Returns an output stream to the resource
delete
public boolean delete()
- Description copied from class:
org.mortbay.util.Resource - Deletes the given resource
renameTo
public boolean renameTo(org.mortbay.util.Resource newName)
- Description copied from class:
org.mortbay.util.Resource - Rename the given resource
list
public java.lang.String[] list()
- Description copied from class:
org.mortbay.util.Resource - Returns a list of resource names contained in the given resource
The resource names are not URL encoded.
addPath
public org.mortbay.util.Resource addPath(java.lang.String addedPath)
- Description copied from class:
org.mortbay.util.Resource - Returns the resource contained inside the current resource with the
given name.
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object - Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string concatenation with this object. If the result is
null, string concatenation will instead use"null".The default implementation returns
getClass().getName() + "@" + Integer.toHexString(hashCode()).
|
|||||||||
| Home >> All >> jac >> aspects >> gui >> [ web overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC