| Modifier and Type | Field and Description |
|---|---|
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | exists()
Overrides org. |
| public File | getFile()
Overrides org. |
| public InputStream | getInputStream()
Returns an input stream to the resource
|
| public OutputStream | getOutputStream()
Returns an output stream to the resource
|
| public boolean | isDirectory()
Overrides org. |
| public long | lastModified()
Returns the last modified time
|
| public long | |
| public String[] | list()
Overrides org. |
| public boolean | renameTo(Resource dest)
Overrides org. |
| public String | toString()
Overrides org. |
| _message | back to summary |
|---|---|
| private String _message | |
| BadResource | back to summary |
|---|---|
| pack-priv BadResource(URL url, String message) | |
| delete | back to summary |
|---|---|
| public boolean delete() throws SecurityException Overrides org. Doc from org. Deletes the given resource | |
| exists | back to summary |
|---|---|
| public boolean exists() Overrides org. Doc from org. Returns true if the represented resource exists. | |
| getFile | back to summary |
|---|---|
| public File getFile() Overrides org. Doc from org. Returns an File representing the given resource or NULL if this is not possible. | |
| getInputStream | back to summary |
|---|---|
| public InputStream getInputStream() throws IOException Overrides org. Doc from org. Returns an input stream to the resource | |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() throws IOException, SecurityException Overrides org. Doc from org. Returns an output stream to the resource | |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Overrides org. Doc from 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() Overrides org. Doc from org. Returns the last modified time | |
| length | back to summary |
|---|---|
| public long length() Overrides org. Doc from org. Return the length of the resource | |
| list | back to summary |
|---|---|
| public String[] list() Overrides org. Doc from org. Returns a list of resource names contained in the given resource | |
| renameTo | back to summary |
|---|---|
| public boolean renameTo(Resource dest) throws SecurityException Overrides org. Doc from org. Rename the given resource | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
| |