| Modifier and Type | Field and Description |
|---|---|
| protected transient URLConnection | |
| protected transient InputStream | |
| protected URL | |
| protected String | |
| pack-priv transient boolean |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public Resource | addPath(String
The path segment to add, which should be encoded by the
encode method. path)Implements abstract org. |
| protected synchronized boolean | |
| public boolean | |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public boolean | exists()
Implements abstract org. |
| public File | getFile()
Implements abstract org. |
| public synchronized InputStream | getInputStream()
Implements abstract org. |
| public String | getName()
Implements abstract org. |
| public OutputStream | getOutputStream()
Implements abstract org. |
| public URL | getURL()
Implements abstract org. |
| public boolean | |
| public int | |
| public boolean | isDirectory()
Implements abstract org. |
| public long | lastModified()
Implements abstract org. |
| public long | |
| public String[] | list()
Implements abstract org. |
| public synchronized void | release()
Implements abstract org. |
| public boolean | renameTo(Resource dest)
Implements abstract org. |
| public String |
| _connection | back to summary |
|---|---|
| protected transient URLConnection _connection | |
| _in | back to summary |
|---|---|
| protected transient InputStream _in | |
| _url | back to summary |
|---|---|
| protected URL _url | |
| _urlString | back to summary |
|---|---|
| protected String _urlString | |
| _useCaches | back to summary |
|---|---|
| pack-priv transient boolean _useCaches | |
| URLResource | back to summary |
|---|---|
| protected URLResource(URL url, URLConnection connection) | |
| URLResource | back to summary |
|---|---|
| protected URLResource(URL url, URLConnection connection, boolean useCaches) | |
| addPath | back to summary |
|---|---|
| public Resource addPath(String path) throws IOException, MalformedURLException Implements abstract org. Returns the resource contained inside the current resource with the given name
| |
| checkConnection | back to summary |
|---|---|
| protected synchronized boolean checkConnection() | |
| delete | back to summary |
|---|---|
| public boolean delete() throws SecurityException Implements abstract org. Deletes the given resource | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| exists | back to summary |
|---|---|
| public boolean exists() Implements abstract org. Returns true if the represented resource exists. | |
| getFile | back to summary |
|---|---|
| public File getFile() throws IOException Implements abstract org. Returns an File representing the given resource or NULL if this is not possible. | |
| getInputStream | back to summary |
|---|---|
| public synchronized InputStream getInputStream() throws IOException Implements abstract org. Returns an input stream to the resource | |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Returns the name of the resource | |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() throws IOException, SecurityException Implements abstract org. Returns an output stream to the resource | |
| getURL | back to summary |
|---|---|
| public URL getURL() Implements abstract org. Returns an URL representing the given resource | |
| getUseCaches | back to summary |
|---|---|
| public boolean getUseCaches() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Implements abstract org. 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 long lastModified() Implements abstract org. Returns the last modified time | |
| length | back to summary |
|---|---|
| public long length() Implements abstract org. Return the length of the resource | |
| list | back to summary |
|---|---|
| public String[] list() Implements abstract org. Returns a list of resource names contained in the given resource | |
| release | back to summary |
|---|---|
| public synchronized void release() Implements abstract org. Release any resources held by the resource. | |
| renameTo | back to summary |
|---|---|
| public boolean renameTo(Resource dest) throws SecurityException Implements abstract org. Rename the given resource | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |