Java Path Normalize NormalizeName(String absolutePath)

Here you can find the source of NormalizeName(String absolutePath)

Description

Normalize Name

License

Open Source License

Declaration

public static String NormalizeName(String absolutePath) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    static String[] forbiddenSymbols = { "/", "\\", "?", "*", ":", "|", "\"", "<", ">" };

    public static String NormalizeName(String absolutePath) {
        String name = absolutePath;
        for (String symbol : forbiddenSymbols) {
            if (!symbol.equals("\\"))
                name = name.replace(symbol, "");
        }/*from www.java2  s .  co m*/
        return name;
    }
}

Related

  1. normalizeFileSystemPath(String path)
  2. normalizeFullPath(String path)
  3. normalizeLocalPath(final String localPath)
  4. normalizeMediaPath(String hrefBaseUrl, String localMediaPath, String href)
  5. normalizeName(final String path, final boolean isDirectory)
  6. normalizePath(final String in)
  7. normalizePath(final String path)
  8. normalizePath(final String path)
  9. normalizePath(final String path)