public abstract class FileResourceCreator extends Object implements ResourceCreator
| Constructor and Description |
|---|
FileResourceCreator() |
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
createResource(String resourceName)
Creates the designated resource.
|
boolean |
deleteResource(String resourceName)
Deletes the resource with the given name.
|
protected abstract File |
getFile(String resourceName) |
public final OutputStream createResource(String resourceName) throws IOException
ResourceCreatorcreateResource in interface ResourceCreatorresourceName - Designates the resource; typically structured by slashes ("/") like
"com/foo/pkg/Bar.class"OutputStream are stored in the resourceIOException - Problems creating the resourcepublic final boolean deleteResource(String resourceName)
ResourceCreatordeleteResource in interface ResourceCreatorfalse if the resource could not be deletedCopyright © 2019. All rights reserved.