Java Path Normalize normalizePath(final String path)

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

Description

Converts path characters from their native format to the "forward-slash" format expected within RPM files.

License

Open Source License

Declaration

public static String normalizePath(final String path) 

Method Source Code

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

public class Main {
    /**//from   w  w w.j  a v  a2s  .  c om
     * Converts path characters from their native
     * format to the "forward-slash" format expected
     * within RPM files.
     */
    public static String normalizePath(final String path) {
        return path.replace('\\', '/');
    }
}

Related

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