There also exists a concept ResourceFinder that finds Resources for reading.
ResourceFinder
| Modifier and Type | Method and Description |
|---|---|
| public OutputStream | Returns: Bytes written to thisOutputStream are stored in the resourceDesignates the resource; typically structured by slashes ("/") like
" resourceName)com/foo/pkg/Bar.class"Creates the designated resource. |
| public boolean | Returns: false if the resource could not be deletedDeletes the resource with the given name. |
| createResource | back to summary |
|---|---|
| public OutputStream createResource(String resourceName) throws IOException Creates the designated resource.
| |
| deleteResource | back to summary |
|---|---|
| public boolean deleteResource(String resourceName) Deletes the resource with the given name.
| |