Class SystemCommand

java.lang.Object
org.apache.jorphan.exec.SystemCommand

public class SystemCommand extends Object
Utility class for invoking native system applications
  • Field Details

  • Constructor Details

    • SystemCommand

      public SystemCommand(File directory, Map<String,String> env)
      Parameters:
      env - Environment variables appended to environment (may be null)
      directory - File working directory (may be null)
    • SystemCommand

      public SystemCommand(File directory, long timeoutMillis, int pollInterval, Map<String,String> env, String stdin, String stdout, String stderr) throws IOException
      Parameters:
      env - Environment variables appended to environment (may be null)
      directory - File working directory (may be null)
      timeoutMillis - timeout in Milliseconds
      pollInterval - Value used to poll for Process execution end
      stdin - File name that will contain data to be input to process (may be null)
      stdout - File name that will contain out stream (may be null)
      stderr - File name that will contain err stream (may be null)
      Throws:
      IOException - if the input file is not found or output cannot be written
    • SystemCommand

      public SystemCommand(File directory, long timeoutMillis, int pollInterval, Map<String,String> env, InputStream stdin, OutputStream stdout, OutputStream stderr)
      Parameters:
      env - Environment variables appended to environment (may be null)
      directory - File working directory (may be null)
      timeoutMillis - timeout in Milliseconds
      pollInterval - not used anymore
      stdin - File name that will contain data to be input to process (may be null)
      stdout - File name that will contain out stream (may be null)
      stderr - File name that will contain err stream (may be null)
  • Method Details