Class FileResourceCreator
java.lang.Object
org.codehaus.commons.compiler.util.resource.FileResourceCreator
- All Implemented Interfaces:
ResourceCreator
- Direct Known Subclasses:
DirectoryResourceCreator
Stores a stream of bytes in a named resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal OutputStreamcreateResource(String resourceName) Creates the designated resource.final booleandeleteResource(String resourceName) Deletes the resource with the given name.protected abstract File
-
Constructor Details
-
FileResourceCreator
public FileResourceCreator()
-
-
Method Details
-
createResource
Description copied from interface:ResourceCreatorCreates the designated resource.- Specified by:
createResourcein interfaceResourceCreator- Parameters:
resourceName- Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"- Returns:
- Bytes written to this
OutputStreamare stored in the resource - Throws:
IOException- Problems creating the resource
-
deleteResource
Description copied from interface:ResourceCreatorDeletes the resource with the given name.- Specified by:
deleteResourcein interfaceResourceCreator- Returns:
falseif the resource could not be deleted
-
getFile
-