public final class FilePathNormalizer extends Object implements Normalizer
| Constructor and Description |
|---|
FilePathNormalizer(String baseDir)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBaseDir()
Returns the path to the root folder.
|
String |
normalize(String input)
Normalizes the input string.
|
public FilePathNormalizer(String baseDir) throws NullPointerException
baseDir - the path to the root folder.NullPointerException - if baseDir is null.public String getBaseDir()
public String normalize(String input)
Removed the prefix path defined by the baseDir passed in via the
FilePathNormalizer(String) constructor.
normalize in interface Normalizerinput - the string to normalize. May be null.Copyright © 2006-2014. All Rights Reserved.