Class PathResourceFinder
java.lang.Object
org.codehaus.janino.util.resource.ResourceFinder
org.codehaus.janino.util.resource.MultiResourceFinder
org.codehaus.janino.util.resource.LazyMultiResourceFinder
org.codehaus.janino.util.resource.PathResourceFinder
A
ResourceFinder
that finds its resources along a "path"
consisting of JAR file names, ZIP file names, and directory names.- See Also:
-
Field Summary
Fields inherited from class org.codehaus.janino.util.resource.ResourceFinder
EMPTY_RESOURCE_FINDER
-
Constructor Summary
ConstructorsConstructorDescriptionPathResourceFinder
(File[] entries) PathResourceFinder
(String path) PathResourceFinder
(Iterator entries) -
Method Summary
Methods inherited from class org.codehaus.janino.util.resource.MultiResourceFinder
findResource
Methods inherited from class org.codehaus.janino.util.resource.ResourceFinder
findResourceAsStream
-
Constructor Details
-
PathResourceFinder
- Parameters:
entries
- The entries of the "path"
-
PathResourceFinder
- Parameters:
entries
- The entries of the "path" (type must beFile
)
-
PathResourceFinder
- Parameters:
path
- A java-like path, i.e. a "path separator"-separated list of entries.
-
-
Method Details
-
parsePath
Break a given string up by the system-dependent path-separator character (on UNIX systems, this character is ':'; on Microsoft Windows systems it is ';'). Empty components are ignored.UNIX Examples:
- A:B:C
- A, B, C
- ::B:
- B
- :A
- A
- (Empty string)
- (Zero components)
- See Also:
-