public class PathResourceFinder extends LazyMultiResourceFinder
ResourceFinder
that finds its resources along a "path"
consisting of JAR file names, ZIP file names, and directory names.ZipFileResourceFinder
,
DirectoryResourceFinder
EMPTY_RESOURCE_FINDER
Constructor and Description |
---|
PathResourceFinder(java.io.File[] entries) |
PathResourceFinder(java.util.Iterator entries) |
PathResourceFinder(java.lang.String path) |
Modifier and Type | Method and Description |
---|---|
static java.io.File[] |
parsePath(java.lang.String s)
Break a given string up by the system-dependent path-separator character (on UNIX systems,
this character is ':'; on Microsoft Windows systems it is ';').
|
findResource
findResourceAsStream
public PathResourceFinder(java.io.File[] entries)
entries
- The entries of the "path"public PathResourceFinder(java.util.Iterator entries)
entries
- The entries of the "path" (type must be File
)public PathResourceFinder(java.lang.String path)
path
- A java-like path, i.e. a "path separator"-separated list of entries.public static java.io.File[] parsePath(java.lang.String s)
UNIX Examples:
File.pathSeparatorChar
Copyright © 2001-2012. All Rights Reserved.