Package org.apache.tika.utils
Class ProcessUtils
- java.lang.Object
-
- org.apache.tika.utils.ProcessUtils
-
public class ProcessUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ProcessUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
escapeCommandLine(java.lang.String arg)
This should correctly put double-quotes around an argument if ProcessBuilder doesn't seem to work (as it doesn't on paths with spaces on Windows)static java.lang.String
unescapeCommandLine(java.lang.String arg)
-
-
-
Method Detail
-
escapeCommandLine
public static java.lang.String escapeCommandLine(java.lang.String arg)
This should correctly put double-quotes around an argument if ProcessBuilder doesn't seem to work (as it doesn't on paths with spaces on Windows)- Parameters:
arg
-- Returns:
-
unescapeCommandLine
public static java.lang.String unescapeCommandLine(java.lang.String arg)
-
-