| Modifier and Type | Field and Description |
|---|---|
| public static boolean | |
| pack-priv Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract Resource | |
| public abstract boolean | |
| public String | |
| public abstract boolean | |
| protected void | finalize()
Overrides java. |
| public URL | |
| public Object | |
| public static boolean | |
| public abstract File | |
| public abstract InputStream | |
| public String | Returns: String of HTMLThe base URL base, boolean True if the parent directory should be included parent)Get the resource list as a HTML directory listing. |
| public abstract String | |
| public abstract OutputStream | |
| public abstract URL | |
| public abstract boolean | |
| public abstract long | |
| public abstract long | |
| public abstract String[] | list()
Returns a list of resource names contained in the given resource The resource names are not URL encoded. |
| public static Resource | |
| public static Resource | Returns: Resource or nullThe relative name of the resouce name, boolean True if URL caches are to be used. useCaches, boolean True if forced searching of parent classloaders is performed to work around
loaders with inverted priorities checkParents)Find a classpath resource. |
| public static Resource | |
| pack-priv static Resource | newResource(URL
the url for which to make the resource url, boolean true enables URLConnection caching if applicable to the type of resource useCaches)Construct a resource from a url. |
| public static Resource | Returns: A Resource object.A URL or filename. resource)Construct a resource from a string. |
| public static Resource | Returns: A Resource object.A URL or filename. resource, boolean controls URLConnection caching useCaches)Construct a resource from a string. |
| public static Resource | |
| public abstract void | |
| public abstract boolean | |
| public void | |
| public static void | |
| public void | writeTo(OutputStream out, long
First byte to write start, long Bytes to write or -1 for all of them. count)
|
| __defaultUseCaches | back to summary |
|---|---|
| public static boolean __defaultUseCaches | |
| _associate | back to summary |
|---|---|
| pack-priv Object _associate | |
| Resource | back to summary |
|---|---|
| public Resource() | |
| addPath | back to summary |
|---|---|
| public abstract Resource addPath(String path) throws IOException, MalformedURLException Returns the resource contained inside the current resource with the given name.
| |
| delete | back to summary |
|---|---|
| public abstract boolean delete() throws SecurityException Deletes the given resource | |
| encode | back to summary |
|---|---|
| public String encode(String uri) Encode according to this resource type. The default implementation calls URI.encodePath(uri)
| |
| exists | back to summary |
|---|---|
| public abstract boolean exists() Returns true if the respresened resource exists. | |
| finalize | back to summary |
|---|---|
| protected void finalize() Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the | |
| getAlias | back to summary |
|---|---|
public URL getAlias()
| |
| getAssociate | back to summary |
|---|---|
| public Object getAssociate() | |
| getDefaultUseCaches | back to summary |
|---|---|
| public static boolean getDefaultUseCaches() | |
| getFile | back to summary |
|---|---|
| public abstract File getFile() throws IOException Returns an File representing the given resource or NULL if this is not possible. | |
| getInputStream | back to summary |
|---|---|
| public abstract InputStream getInputStream() throws IOException Returns an input stream to the resource | |
| getListHTML | back to summary |
|---|---|
| public String getListHTML(String base, boolean parent) throws IOException Get the resource list as a HTML directory listing. | |
| getName | back to summary |
|---|---|
| public abstract String getName() Returns the name of the resource | |
| getOutputStream | back to summary |
|---|---|
| public abstract OutputStream getOutputStream() throws IOException, SecurityException Returns an output stream to the resource | |
| getURL | back to summary |
|---|---|
| public abstract URL getURL() Returns an URL representing the given resource | |
| isDirectory | back to summary |
|---|---|
| public abstract boolean isDirectory() Returns true if the respresenetd resource is a container/directory. If the resource is not a file, resources ending with "/" are considered directories. | |
| lastModified | back to summary |
|---|---|
| public abstract long lastModified() Returns the last modified time | |
| length | back to summary |
|---|---|
| public abstract long length() Return the length of the resource | |
| list | back to summary |
|---|---|
| public abstract String[] list() Returns a list of resource names contained in the given resource The resource names are not URL encoded. | |
| newClassPathResource | back to summary |
|---|---|
| public static Resource newClassPathResource(String resource) Find a classpath resource. | |
| newClassPathResource | back to summary |
|---|---|
| public static Resource newClassPathResource(String name, boolean useCaches, boolean checkParents) Find a classpath resource.
The {@java .lang.Class#getResource} method is used to lookup the resource. If it is not
found, then the | |
| newResource | back to summary |
|---|---|
| public static Resource newResource(URL url) throws IOException Construct a resource from a url. | |
| newResource | back to summary |
|---|---|
| pack-priv static Resource newResource(URL url, boolean useCaches) Construct a resource from a url.
| |
| newResource | back to summary |
|---|---|
| public static Resource newResource(String resource) throws MalformedURLException, IOException Construct a resource from a string. | |
| newResource | back to summary |
|---|---|
| public static Resource newResource(String resource, boolean useCaches) throws MalformedURLException, IOException Construct a resource from a string. | |
| newSystemResource | back to summary |
|---|---|
| public static Resource newSystemResource(String resource) throws IOException Construct a system resource from a string. The resource is tried as classloader resource before being treated as a normal resource. | |
| release | back to summary |
|---|---|
| public abstract void release() Release any resources held by the resource. | |
| renameTo | back to summary |
|---|---|
| public abstract boolean renameTo(Resource dest) throws SecurityException Rename the given resource | |
| setAssociate | back to summary |
|---|---|
| public void setAssociate(Object o) | |
| setDefaultUseCaches | back to summary |
|---|---|
| public static void setDefaultUseCaches(boolean useCaches) Change the default setting for url connection caches. Subsequent URLConnections will use this default. | |
| writeTo | back to summary |
|---|---|
public void writeTo(OutputStream out, long start, long count) throws IOException
| |