com.buglabs.bug.base
Class ShellService

java.lang.Object
  extended by com.buglabs.bug.base.ShellService
All Implemented Interfaces:
IShellService

public class ShellService
extends java.lang.Object
implements IShellService

Default implementation of IShellService.


Constructor Summary
ShellService()
           
 
Method Summary
 IShellSession createShellSession()
           
 IShellSession createShellSession(java.io.File directory, java.io.Writer output)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShellService

public ShellService()
Method Detail

createShellSession

public IShellSession createShellSession()
                                 throws java.io.IOException
Specified by:
createShellSession in interface IShellService
Returns:
A default instance. Directory defaults to /tmp.
Throws:
java.io.IOException

createShellSession

public IShellSession createShellSession(java.io.File directory,
                                        java.io.Writer output)
                                 throws java.io.IOException
Specified by:
createShellSession in interface IShellService
Parameters:
directory - directory where shell should begin.
output - A writer where all output should go, or null if not required.
Returns:
Throws:
java.io.IOException