org.jibx.util
Class ResourceMatcher
java.lang.Object
org.jibx.util.ResourceMatcher
public class ResourceMatcher
- extends Object
Supports finding resources relative to a file system base directory or base URL. When using a file system base
directory, the resource paths may include '*' wildcard match characters for the actual file names.
- Author:
- Dennis M. Sosnoski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceMatcher
public ResourceMatcher()
matchPaths
public static List matchPaths(File basedir,
URL baseurl,
List paths,
ResourceMatcher.ReportMatch report)
throws IOException
- Find matches to resource paths. The paths may be either absolute, or relative to a file system directory or to a
general URL, but the paths may contain '*' wildcard match characters only if relative to a file system directory.
An error is reported for each invalid pattern, including wildcard patterns with no matching files and malformed
URLs.
- Parameters:
basedir - file system base directory (null if not using file system)baseurl - base URL for names (null if no base)paths - resource paths to be found, with wildcards allowed in name portion if using file systemreport - match reporting interface
- Returns:
- error message list (empty list if no errors)
- Throws:
IOException
Copyright © 2005-2011 jibx.org. All Rights Reserved.