| Modifier and Type | Field and Description |
|---|---|
| private Resource[] |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Resource | Returns: The contained resource (found first) in the collection of resourcesThe path segment to add path)Implements abstract org. |
| public boolean | |
| public boolean | exists()
Implements abstract org. |
| protected Object | Returns: the resource(file) if found, returns a list of resource dirs if its a dir, else null.
|
| public File | getFile()
Implements abstract org. |
| public InputStream | getInputStream()
Implements abstract org. |
| public String | getName()
Implements abstract org. |
| public OutputStream | getOutputStream()
Implements abstract org. |
| public Resource[] | |
| public URL | getURL()
Implements abstract org. |
| public boolean | isDirectory()
Implements abstract org. |
| public long | lastModified()
Implements abstract org. |
| public long | |
| public String[] | Returns: The list of resource names(merged) contained in the collection of resources.Implements abstract org. |
| public void | release()
Implements abstract org. |
| public boolean | renameTo(Resource dest)
Implements abstract org. |
| public void | |
| public void | |
| public void | |
| public void | |
| public String | Returns: the list of resources separated by a path separatorOverrides java. |
| _resources | back to summary |
|---|---|
| private Resource[] _resources | |
| ResourceCollection | back to summary |
|---|---|
| public ResourceCollection() | |
| ResourceCollection | back to summary |
|---|---|
| public ResourceCollection(Resource[] resources) | |
| ResourceCollection | back to summary |
|---|---|
| public ResourceCollection(String[] resources) | |
| ResourceCollection | back to summary |
|---|---|
| public ResourceCollection(String csvResources) | |
| addPath | back to summary |
|---|---|
| public Resource addPath(String path) throws IOException, MalformedURLException Implements abstract org. Doc from org. Returns the resource contained inside the current resource with the given name. | |
| delete | back to summary |
|---|---|
| public boolean delete() throws SecurityException Implements abstract org. Doc from org. Deletes the given resource | |
| exists | back to summary |
|---|---|
| public boolean exists() Implements abstract org. Doc from org. Returns true if the respresened resource exists. | |
| findResource | back to summary |
|---|---|
protected Object findResource(String path) throws IOException, MalformedURLException
| |
| getFile | back to summary |
|---|---|
| public File getFile() throws IOException Implements abstract 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 Implements abstract org. Doc from org. Returns an input stream to the resource | |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns the name of the resource | |
| getOutputStream | back to summary |
|---|---|
| public OutputStream getOutputStream() throws IOException, SecurityException Implements abstract org. Doc from org. Returns an output stream to the resource | |
| getResources | back to summary |
|---|---|
public Resource[] getResources()
| |
| getURL | back to summary |
|---|---|
| public URL getURL() Implements abstract org. Doc from org. Returns an URL representing the given resource | |
| isDirectory | back to summary |
|---|---|
| public boolean isDirectory() Implements abstract 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() Implements abstract org. Doc from org. Returns the last modified time | |
| length | back to summary |
|---|---|
| public long length() Implements abstract org. Doc from org. Return the length of the resource | |
| list | back to summary |
|---|---|
| public String[] list() Implements abstract org. Doc from org. Returns a list of resource names contained in the given resource The resource names are not URL encoded.
| |
| release | back to summary |
|---|---|
| public void release() Implements abstract org. Doc from org. Release any resources held by the resource. | |
| renameTo | back to summary |
|---|---|
| public boolean renameTo(Resource dest) throws SecurityException Implements abstract org. Doc from org. Rename the given resource | |
| setResources | back to summary |
|---|---|
public void setResources(Resource[] resources)
| |
| setResources | back to summary |
|---|---|
public void setResources(String[] resources)
| |
| setResources | back to summary |
|---|---|
public void setResources(String csvResources)
| |
| setResourcesAsCSV | back to summary |
|---|---|
public void setResourcesAsCSV(String csvResources)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |