imported from svn
[metux-java.git] / util / ShellEscape.java
blob95b12532dfda4e0553f818d2b07f437eb095fe9a
2 package org.de.metux.util;
4 import java.io.File;
6 public class ShellEscape
8 // FIXME !!!!
9 public static String filename ( String fn )
11 return new File(fn).toString();
14 // make xx"foo" => xx\"foo\"
15 public static String quoting(String str)
17 str = StrReplace.replace("\"", "+++quot+++", str);
18 str = StrReplace.replace("+++quot+++", "\\\"", str);
19 return "\""+str+"\"";