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(File[] entries) |
PathResourceFinder(Iterator<ResourceFinder> entries) |
PathResourceFinder(String path) |
Modifier and Type | Method and Description |
---|---|
static File[] |
parsePath(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(File[] entries)
entries
- The entries of the "path"public PathResourceFinder(Iterator<ResourceFinder> entries)
entries
- The entries of the "path" (type must be File
)public PathResourceFinder(String path)
path
- A java-like path, i.e. a "path separator"-separated list of entries.public static File[] parsePath(String s)
UNIX Examples:
File.pathSeparatorChar
Copyright © 2001–2016. All rights reserved.