Package org.terrier.utility
Class Files.PathTransformation
- java.lang.Object
-
- org.terrier.utility.Files.PathTransformation
-
- Enclosing class:
- Files
protected static class Files.PathTransformation extends java.lang.Objecta search regex and a replacement for path transformations
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.regex.Patternmatchespattern for a transformationprotected java.lang.Stringreplacementwhat the pattern should be replaced with
-
Constructor Summary
Constructors Constructor Description PathTransformation(java.lang.String find, java.lang.String replace)create a new transformation with the pattern and replacement
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringtransform(java.lang.String path)change a path if it matches this transformation
-