Class GOSUnknown

java.lang.Object
com.glitchybyte.glib.process.GOSInterface
com.glitchybyte.glib.process.GOSUnknown

public final class GOSUnknown extends GOSInterface
Specialization of GOSInterface for unknown OS. It will throw exceptions on every call.
  • Constructor Details

    • GOSUnknown

      public GOSUnknown()
      Creates an unknown OS interface.
  • Method Details

    • getShellCommand

      public String[] getShellCommand(String command)
      Description copied from class: GOSInterface
      Returns a command array ready to call the shell with the given script.
      Specified by:
      getShellCommand in class GOSInterface
      Parameters:
      command - Shell command with args.
      Returns:
      A new command string.
    • getSignalCommand

      public String[] getSignalCommand(sun.misc.Signal signal, long pid)
      Description copied from class: GOSInterface
      Returns the command array that will send the given signal to the pid.
      Specified by:
      getSignalCommand in class GOSInterface
      Parameters:
      signal - Signal to send.
      pid - Pid of process.
      Returns:
      Command array.