public class PathMatcher extends Object
Modifier and Type | Class and Description |
---|---|
class |
PathMatcher.Match |
Constructor and Description |
---|
PathMatcher() |
Modifier and Type | Method and Description |
---|---|
PathMatcher.Match |
get(String key)
See if this object already exists in the collection, using equals().
|
Iterator |
iterator()
Get an iterator over the values, in sorted order.
|
static void |
main(String[] args) |
PathMatcher.Match |
match(String path)
Find the longest match.
|
void |
put(String root,
String dir)
Add an object to the collection to be searched by a String key.
|
public void put(String root, String dir)
root
- sort keydir
- add this object to the list to be searched.public PathMatcher.Match get(String key)
key
- find object that has this keypublic Iterator iterator()
public PathMatcher.Match match(String path)
path
- find object with longesh match where path.startsWith( key)public static void main(String[] args)
Copyright © 1999–2013 UCAR/Unidata. All rights reserved.