aQute.libg.command
Class Command

java.lang.Object
  extended by aQute.libg.command.Command

public class Command
extends Object


Constructor Summary
Command()
           
 
Method Summary
 void add(String... args)
           
 void addAll(Collection<String> args)
           
 void cancel()
           
 int execute(Appendable stdout, Appendable stderr)
           
 int execute(InputStream in, Appendable stdout, Appendable stderr)
           
 int execute(String input, Appendable stdout, Appendable stderr)
           
 void setCwd(File dir)
           
 void setReporter(Reporter reporter)
           
 void setTimeout(long duration, TimeUnit unit)
           
 void setTrace()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Command

public Command()
Method Detail

execute

public int execute(Appendable stdout,
                   Appendable stderr)
            throws Exception
Throws:
Exception

execute

public int execute(String input,
                   Appendable stdout,
                   Appendable stderr)
            throws Exception
Throws:
Exception

execute

public int execute(InputStream in,
                   Appendable stdout,
                   Appendable stderr)
            throws Exception
Throws:
Exception

add

public void add(String... args)

addAll

public void addAll(Collection<String> args)

setTimeout

public void setTimeout(long duration,
                       TimeUnit unit)

setTrace

public void setTrace()

setReporter

public void setReporter(Reporter reporter)

setCwd

public void setCwd(File dir)

cancel

public void cancel()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 aQute SARL. All Rights Reserved.