jnr.posix.util
Interface ProcessMaker

All Known Implementing Classes:
Java5ProcessMaker

public interface ProcessMaker

Abstract interface for building a process on various JVM versions.


Nested Class Summary
static class ProcessMaker.Redirect
           
 
Method Summary
 List<String> command()
           
 ProcessMaker command(List<String> command)
           
 ProcessMaker command(String... command)
           
 File directory()
           
 ProcessMaker directory(File dir)
           
 Map<String,String> environment()
           
 ProcessMaker environment(String[] envLines)
           
 ProcessMaker inheritIO()
           
 ProcessMaker.Redirect redirectError()
           
 ProcessMaker redirectError(File file)
           
 ProcessMaker redirectError(ProcessMaker.Redirect destination)
           
 boolean redirectErrorStream()
           
 ProcessMaker redirectErrorStream(boolean redirectErrorStream)
           
 ProcessMaker.Redirect redirectInput()
           
 ProcessMaker redirectInput(File file)
           
 ProcessMaker redirectInput(ProcessMaker.Redirect source)
           
 ProcessMaker.Redirect redirectOutput()
           
 ProcessMaker redirectOutput(File file)
           
 ProcessMaker redirectOutput(ProcessMaker.Redirect destination)
           
 Process start()
           
 

Method Detail

command

List<String> command()

command

ProcessMaker command(List<String> command)

command

ProcessMaker command(String... command)

directory

File directory()

directory

ProcessMaker directory(File dir)

environment

Map<String,String> environment()

environment

ProcessMaker environment(String[] envLines)

inheritIO

ProcessMaker inheritIO()

redirectError

ProcessMaker.Redirect redirectError()

redirectError

ProcessMaker redirectError(File file)

redirectError

ProcessMaker redirectError(ProcessMaker.Redirect destination)

redirectErrorStream

boolean redirectErrorStream()

redirectErrorStream

ProcessMaker redirectErrorStream(boolean redirectErrorStream)

redirectInput

ProcessMaker.Redirect redirectInput()

redirectInput

ProcessMaker redirectInput(File file)

redirectInput

ProcessMaker redirectInput(ProcessMaker.Redirect source)

redirectOutput

ProcessMaker.Redirect redirectOutput()

redirectOutput

ProcessMaker redirectOutput(File file)

redirectOutput

ProcessMaker redirectOutput(ProcessMaker.Redirect destination)

start

Process start()
              throws IOException
Throws:
IOException


Copyright © 2014. All Rights Reserved.