- java.lang.Object
-
- jnr.posix.util.WindowsHelpers
-
public class WindowsHelpers extends Object
- Author:
- enebo
-
-
Constructor Summary
Constructors Constructor Description WindowsHelpers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static jnr.ffi.PointercreateWideEnv(String[] envp)static StringescapePath(String path)static booleanisBatch(String value)static booleanisDriveLetterPath(String path)static StringjoinArgv(String command, String[] argv, boolean escape)static String[]processCommandArgs(POSIX posix, String program, String[] argv, String path)static String[]processCommandLine(POSIX posix, String command, String program, String path)static booleanquotable(String value)static byte[]toWPath(String path)static byte[]toWString(String string)
-
-
-
Method Detail
-
toWPath
public static byte[] toWPath(String path)
-
toWString
public static byte[] toWString(String string)
-
createWideEnv
public static jnr.ffi.Pointer createWideEnv(String[] envp)
-
quotable
public static boolean quotable(String value)
-
isBatch
public static boolean isBatch(String value)
-
processCommandLine
public static String[] processCommandLine(POSIX posix, String command, String program, String path)
-
processCommandArgs
public static String[] processCommandArgs(POSIX posix, String program, String[] argv, String path)
-
isDriveLetterPath
public static boolean isDriveLetterPath(String path)
-
-