Java Unix Encode UnixNameFilter(String Name)

Here you can find the source of UnixNameFilter(String Name)

Description

{ method

License

Apache License

Parameter

Parameter Description
Name input name

Return

Filtered file name }

Declaration

public static String UnixNameFilter(String Name) 

Method Source Code

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

public class Main {
    /**// w ww . j  a  v  a 2 s  .  c om
     * { method
     *
     * @param Name input name
     * @return Filtered file name
     *         }
     * @name UnixNameFilter
     * @function convert pc style filenames foo\bar to unix style foo/bar
     */
    public static String UnixNameFilter(String Name) {
        if (Name == null) {
            return (null);
        }
        return (Name.replace('\\', '/'));
    }
}

Related

  1. unixCommands(final String prefix)
  2. unixEncode(String string)
  3. unixLineEndings(String text)