Web Site

org.codehaus.janino.util.resource
Class PathResourceFinder

java.lang.Object
  extended byorg.codehaus.janino.util.resource.ResourceFinder
      extended byorg.codehaus.janino.util.resource.MultiResourceFinder
          extended byorg.codehaus.janino.util.resource.LazyMultiResourceFinder
              extended byorg.codehaus.janino.util.resource.PathResourceFinder

public class PathResourceFinder
extends LazyMultiResourceFinder

A ResourceFinder that finds its resources along a "path" consisting of JAR file names, ZIP file names, and directory names.

See Also:
ZipFileResourceFinder, DirectoryResourceFinder

Nested Class Summary
 
Nested classes inherited from class org.codehaus.janino.util.resource.ResourceFinder
ResourceFinder.FileResource, ResourceFinder.Resource
 
Field Summary
 
Fields inherited from class org.codehaus.janino.util.resource.MultiResourceFinder
EMPTY_RESOURCE_FINDER
 
Constructor Summary
PathResourceFinder(File[] entries)
           
PathResourceFinder(Iterator entries)
           
PathResourceFinder(String path)
           
 
Method Summary
static File[] parsePath(String s)
          Break a given string up by a "separator" string.
 
Methods inherited from class org.codehaus.janino.util.resource.MultiResourceFinder
findResource
 
Methods inherited from class org.codehaus.janino.util.resource.ResourceFinder
findResourceAsStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathResourceFinder

public PathResourceFinder(File[] entries)
Parameters:
entries - The entries of the "path"

PathResourceFinder

public PathResourceFinder(Iterator entries)
Parameters:
entries - The entries of the "path" (type must be File)

PathResourceFinder

public PathResourceFinder(String path)
Parameters:
path - A java-like path, i.e. a "path separator"-separated list of entries.
Method Detail

parsePath

public static File[] parsePath(String s)
Break a given string up by a "separator" string. Empty components are ignored.

Examples:

A*B*C
A, B, C
**B*
B
*A
A
(Empty string)
(Zero components)


Web Site