de.mud.jta.plugin
Class Shell
java.lang.Object
  |
  +--de.mud.jta.Plugin
        |
        +--de.mud.jta.plugin.Shell
- All Implemented Interfaces: 
- FilterPlugin
- public class Shell- extends Plugin- implements FilterPlugin
The shell plugin is the backend component for terminal emulation using
 a shell. It provides the i/o streams of the shell as data source.
 
 Maintainer: Matthias L. Jugel
- Version:
- $Id: Shell.java,v 2.8 2002/05/06 07:24:20 leo Exp $
- Author:
- Matthias L. Jugel, Marcus Meißner, Pete Zaitcev
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
shellCommand
protected java.lang.String shellCommand
Shell
public Shell(PluginBus bus,
             java.lang.String id)
setFilterSource
public void setFilterSource(FilterPlugin plugin)
- Description copied from interface: FilterPlugin
- Set the source plugin where we get our data from and where the data
 sink (write) is. The actual data handling should be done in the
 read() and write() methods.
 
- 
- Specified by:
- setFilterSourcein interface- FilterPlugin
 
- 
- Parameters:
- plugin- the data source
 
getFilterSource
public FilterPlugin getFilterSource()
- 
- Specified by:
- getFilterSourcein interface- FilterPlugin
 
- 
 
read
public int read(byte[] b)
         throws java.io.IOException
- Description copied from interface: FilterPlugin
- Read a block of data from the back end.
 
- 
- Specified by:
- readin interface- FilterPlugin
 
- 
- Parameters:
- b- the buffer to read the data into
- Returns:
- the amount of bytes actually read
- java.io.IOException
 
write
public void write(byte[] b)
           throws java.io.IOException
- Description copied from interface: FilterPlugin
- Write a block of data to the back end.
 
- 
- Specified by:
- writein interface- FilterPlugin
 
- 
- Parameters:
- b- the buffer to be sent
- java.io.IOException