org.basex.core
Class Launcher

java.lang.Object
  extended by org.basex.core.ALauncher
      extended by org.basex.core.Launcher

public final class Launcher
extends ALauncher

This class executes commands locally.

Author:
Workgroup DBIS, University of Konstanz 2005-09, ISC License, Christian Gruen

Constructor Summary
Launcher(Context ctx)
          Constructor.
 
Method Summary
 boolean execute(Process pr)
          Executes a process.
 void info(PrintOutput out)
          Returns process info.
 void output(PrintOutput out)
          Serializes the textual results of a command.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Launcher

public Launcher(Context ctx)
Constructor.

Parameters:
ctx - context
Method Detail

execute

public boolean execute(Process pr)
Description copied from class: ALauncher
Executes a process.

Specified by:
execute in class ALauncher
Parameters:
pr - process to be executed
Returns:
success of operation

output

public void output(PrintOutput out)
            throws java.io.IOException
Description copied from class: ALauncher
Serializes the textual results of a command.

Specified by:
output in class ALauncher
Parameters:
out - output stream
Throws:
java.io.IOException - I/O exception

info

public void info(PrintOutput out)
          throws java.io.IOException
Description copied from class: ALauncher
Returns process info.

Specified by:
info in class ALauncher
Parameters:
out - output stream
Throws:
java.io.IOException - I/O exception