| |
|
| java.lang.Object org.mortbay.resource.Resource org.mortbay.resource.URLResource org.mortbay.resource.JarResource org.mortbay.resource.JarFileResource
_directory | transient boolean _directory(Code) | | |
_exists | transient boolean _exists(Code) | | |
JarFileResource | JarFileResource(URL url)(Code) | | |
JarFileResource | JarFileResource(URL url, boolean useCaches)(Code) | | |
checkConnection | protected boolean checkConnection()(Code) | | |
encode | public String encode(String uri)(Code) | | Encode according to this resource type.
File URIs are not encoded.
Parameters: uri - URI to encode. The uri unchanged. |
exists | public boolean exists()(Code) | | Returns true if the respresenetd resource exists.
|
getNonCachingResource | public static Resource getNonCachingResource(Resource resource)(Code) | | Take a Resource that possibly might use URLConnection caching
and turn it into one that doesn't.
Parameters: resource - |
isDirectory | public boolean isDirectory()(Code) | | Returns true if the represented resource is a container/directory.
If the resource is not a file, resources ending with "/" are
considered directories.
|
lastModified | public long lastModified()(Code) | | Returns the last modified time
|
length | public long length()(Code) | | Return the length of the resource
|
release | public synchronized void release()(Code) | | |
Methods inherited from org.mortbay.resource.Resource | abstract public Resource addPath(String path) throws IOException, MalformedURLException(Code)(Java Doc) abstract public boolean delete() throws SecurityException(Code)(Java Doc) public String encode(String uri)(Code)(Java Doc) abstract public boolean exists()(Code)(Java Doc) protected void finalize()(Code)(Java Doc) public URL getAlias()(Code)(Java Doc) public Object getAssociate()(Code)(Java Doc) public static boolean getDefaultUseCaches()(Code)(Java Doc) abstract public File getFile() throws IOException(Code)(Java Doc) abstract public InputStream getInputStream() throws java.io.IOException(Code)(Java Doc) public String getListHTML(String base, boolean parent) throws IOException(Code)(Java Doc) abstract public String getName()(Code)(Java Doc) abstract public OutputStream getOutputStream() throws java.io.IOException, SecurityException(Code)(Java Doc) abstract public URL getURL()(Code)(Java Doc) abstract public boolean isDirectory()(Code)(Java Doc) abstract public long lastModified()(Code)(Java Doc) abstract public long length()(Code)(Java Doc) abstract public String[] list()(Code)(Java Doc) public static Resource newClassPathResource(String resource)(Code)(Java Doc) public static Resource newClassPathResource(String name, boolean useCaches, boolean checkParents)(Code)(Java Doc) public static Resource newResource(URL url) throws IOException(Code)(Java Doc) public static Resource newResource(URL url, boolean useCaches)(Code)(Java Doc) public static Resource newResource(String resource) throws MalformedURLException, IOException(Code)(Java Doc) public static Resource newResource(String resource, boolean useCaches) throws MalformedURLException, IOException(Code)(Java Doc) public static Resource newSystemResource(String resource) throws IOException(Code)(Java Doc) abstract public void release()(Code)(Java Doc) abstract public boolean renameTo(Resource dest) throws SecurityException(Code)(Java Doc) public void setAssociate(Object o)(Code)(Java Doc) public static void setDefaultUseCaches(boolean useCaches)(Code)(Java Doc) public void writeTo(OutputStream out, long start, long count) throws IOException(Code)(Java Doc)
|
|
|
|