Class WindowsHelpers

java.lang.Object
jnr.posix.util.WindowsHelpers

public class WindowsHelpers extends Object
  • Field Details

    • runtime

      static final jnr.ffi.Runtime runtime
    • WORDSIZE

      static final int WORDSIZE
    • COMMAND_DOT_COM

      private static final String COMMAND_DOT_COM
      See Also:
    • CDC_LENGTH

      private static final int CDC_LENGTH
    • INTERNAL_COMMANDS

      private static Map<String,WindowsHelpers.InternalType> INTERNAL_COMMANDS
  • Constructor Details

    • WindowsHelpers

      public WindowsHelpers()
  • Method Details

    • toWPath

      public static byte[] toWPath(String path)
    • toWString

      public static byte[] toWString(String string)
    • createWideEnv

      public static jnr.ffi.Pointer createWideEnv(String[] envp)
    • joinSingleArgv

      private static void joinSingleArgv(StringBuilder buffer, String arg, boolean quote, boolean escape)
    • joinArgv

      public static String joinArgv(String command, String[] argv, boolean escape)
    • 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)
    • isFunnyChar

      private static boolean isFunnyChar(char c)
    • hasBuiltinSpecialNeeds

      private static boolean hasBuiltinSpecialNeeds(String value)
    • firstNonWhitespaceIndex

      private static int firstNonWhitespaceIndex(String value)
    • escapePath

      public static String escapePath(String path)
    • isDirectorySeparator

      private static boolean isDirectorySeparator(char value)
    • isCommandDotCom

      private static boolean isCommandDotCom(String command)
    • isInternalCommand

      private static boolean isInternalCommand(String command, boolean hasCommandDotCom)
    • isDriveLetterPath

      public static boolean isDriveLetterPath(String path)