| java.lang.Object org.mortbay.resource.Resource org.mortbay.resource.URLResource
All known Subclasses: org.mortbay.resource.JarResource, org.mortbay.resource.FileResource, org.mortbay.resource.BadResource,
URLResource | public class URLResource extends Resource (Code) | | Abstract resource class.
author: Nuno Pregui�a author: Greg Wilkins (gregw) |
_useCaches | transient boolean _useCaches(Code) | | |
checkConnection | protected synchronized boolean checkConnection()(Code) | | |
exists | public boolean exists()(Code) | | Returns true if the respresened resource exists.
|
getFile | public File getFile() throws IOException(Code) | | Returns an File representing the given resource or NULL if this
is not possible.
|
getName | public String getName()(Code) | | Returns the name of the resource
|
getURL | public URL getURL()(Code) | | Returns an URL representing the given resource
|
getUseCaches | public boolean getUseCaches()(Code) | | |
hashCode | public int hashCode()(Code) | | |
isDirectory | public boolean isDirectory()(Code) | | 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()(Code) | | Returns the last modified time
|
length | public long length()(Code) | | Return the length of the resource
|
list | public String[] list()(Code) | | Returns a list of resource names contained in the given resource
|
release | public synchronized void release()(Code) | | Release any resources held by the resource.
|
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)
|
|
|