org.stanwood.media.search
Class ReverseFilePatternMatcher
java.lang.Object
org.stanwood.media.search.ReverseFilePatternMatcher
public class ReverseFilePatternMatcher
- extends java.lang.Object
This class provides methods that will take a file path and a search pattern, then
parse the file path using the pattern. This is used to find the value of the tokens
in the pattern when applyed to the file path.
Method Summary |
java.util.Map<Token,java.lang.String> |
getValues()
A map of tokens found when a file path was parsed using a rename pattern |
void |
parse(java.lang.String path,
java.lang.String pattern)
Parse the file path using the rename pattern and find the tokens in the
pattern's values |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReverseFilePatternMatcher
public ReverseFilePatternMatcher()
parse
public void parse(java.lang.String path,
java.lang.String pattern)
- Parse the file path using the rename pattern and find the tokens in the
pattern's values
- Parameters:
path
- The file pathpattern
- The rename pattern
getValues
public java.util.Map<Token,java.lang.String> getValues()
- A map of tokens found when a file path was parsed using a rename pattern
- Returns:
- The tokens