Top Description Methods
org.codehaus.commons.compiler.util.resource

public Interface ResourceCreator

Known Direct Implementers
org.codehaus.commons.compiler.util.resource.FileResourceCreator, org.codehaus.commons.compiler.util.resource.MapResourceCreator
Imports
java.io.IOException, .OutputStream

Opens a resource, characterized by a name, for writing.

There also exists a concept ResourceFinder that finds Resources for reading.

See Also
ResourceFinder

Method Summary

Modifier and TypeMethod and Description
public OutputStream

Returns:

Bytes written to this OutputStream are stored in the resource
createResource
(String
Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"
resourceName
)

Creates the designated resource.

public boolean

Returns:

false if the resource could not be deleted
deleteResource
(String resourceName)

Deletes the resource with the given name.

Method Detail

createResourceback to summary
public OutputStream createResource(String resourceName) throws IOException

Creates the designated resource.

Parameters
resourceName:String

Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"

Returns:OutputStream

Bytes written to this OutputStream are stored in the resource

Exceptions
IOException:
Problems creating the resource
deleteResourceback to summary
public boolean deleteResource(String resourceName)

Deletes the resource with the given name.

Returns:boolean

false if the resource could not be deleted