Package org.codehaus.commons.compiler.util.resource
Classes related to loading "resources" (
ResourceFinder
) and
creating resources (ResourceCreator
).-
Interface Summary Interface Description LocatableResource AResource
that can be addressed by a URL.Resource A sequence of bytes that is identified by a "name", is typically found by aResourceFinder
, can beResource.open()
ed for reading, and optionally has aResource.lastModified()
property.ResourceCreator Opens a resource, characterized by a name, for writing. -
Class Summary Class Description DirectoryResourceCreator Creates a resource in a given directory:DirectoryResourceFinder AFileResourceFinder
that finds file resources in a directory.FileResource Representation of a resource that is aFile
.FileResourceCreator Stores a stream of bytes in a named resource.FileResourceFinder This class specializes theResourceFinder
for finding resources inFile
s.JarDirectoriesResourceFinder Finds resources in any of the "*.jar" files that exist in a given set of directories.LazyMultiResourceFinder AResourceFinder
that examines a set ofResourceFinder
s lazily as it searches for resources.ListableResourceFinder Extends theResourceFinder
class with aListableResourceFinder.list(String, boolean)
method.MapResourceCreator Creates resources as byte arrays in a delegateMap
.MapResourceFinder AResourceFinder
that provides access to resource stored as byte arrays in aMap
.MultiResourceFinder AResourceFinder
that finds its resources through a collection of otherResourceFinder
s.PathResourceFinder AResourceFinder
that finds its resources along a "path" consisting of JAR file names, ZIP file names, and directory names.ResourceFinder Finds a resource by name.ResourceFinders Utility methods around theResourceFinder
.StringResource A resource who's content is aString
.ZipFileResourceFinder AResourceFinder
that finds resources in a ZIP file.