Java Path Normalize normalizePath(final String path)

Here you can find the source of normalizePath(final String path)

Description

Normalize path.

License

Apache License

Parameter

Parameter Description
path the path

Return

the string

Declaration

private static String normalizePath(final String path) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**/*  w w w .  j  a  v  a  2s . c om*/
     * Normalize path.
     *
     * @param path the path
     * @return the string
     */
    private static String normalizePath(final String path) {
        return path.replace("%7E", "~").replace(" ", "%20");
    }
}

Related

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