Java Path String Clean cleanPath(String s)

Here you can find the source of cleanPath(String s)

Description

clean Path

License

Apache License

Declaration

public static String cleanPath(String s) 

Method Source Code

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

public class Main {
    public static String cleanPath(String s) {
        String retval = s.replace('\\', '_');
        retval = retval.replace(':', '_');
        retval = retval.replace('/', '_');
        return retval;
    }/*from   w  ww .jav a  2s . c om*/
}

Related

  1. cleanPath(String path)
  2. cleanPath(String path)
  3. cleanPath(String path)
  4. cleanPath(String path)
  5. cleanPath(String path, boolean trimStartSeparator)
  6. cleanPath(String sText, boolean isWindows)
  7. cleanPathSegment(final String toClean)
  8. filePathReplaceAll(String value)
  9. filePathTail(String filePath)