Normalize a relative URI path. This method normalizes "/./", "/../", "//" and "\". If the input path is an attempt to 'escape the root' (e.g. /../input.txt) then null is returned to prevent attempts to 'escape the root'. URI paths containing null bytes will be rejected. @param path Relative
(String path)
| 45 | * @return The normalized path or {@code null} if the input path attempts to 'escape the root'. |
| 46 | */ |
| 47 | public static String normalize(String path) { |
| 48 | return normalize(path, true); |
| 49 | } |
| 50 | |
| 51 | |
| 52 | /** |