de.mud.jta.plugin

Class Sink

Implemented Interfaces:
FilterPlugin, Runnable

public class Sink
extends Plugin
implements FilterPlugin, Runnable

The terminal plugin represents the actual terminal where the data will be displayed and the gets the keyboard input to sent back to the remote host.

Maintainer: Matthias L. Jugel

Version:
$Id: Sink.java 499 2005-09-29 08:24:54Z leo $
Author:
Matthias L. Jugel, Marcus Mei???ner

Field Summary

protected FilterPlugin
source

Fields inherited from class de.mud.jta.Plugin

bus, id

Constructor Summary

Sink(PluginBus bus, String id)
Create a new plugin and set the plugin bus used by this plugin and the unique id.

Method Summary

FilterPlugin
getFilterSource()
int
read(byte[] b)
void
run()
Continuously read from our back end and drop the data.
void
setFilterSource(FilterPlugin source)
void
write(byte[] b)

Methods inherited from class de.mud.jta.Plugin

error, getId

Field Details

source

protected FilterPlugin source

Constructor Details

Sink

public Sink(PluginBus bus,
            String id)
Create a new plugin and set the plugin bus used by this plugin and the unique id. The unique id may be null if there is only one plugin used by the system.
Parameters:
bus - the plugin bus
id - the unique plugin id

Method Details

getFilterSource

public FilterPlugin getFilterSource()
Specified by:
getFilterSource in interface FilterPlugin

read

public int read(byte[] b)
            throws IOException
Specified by:
read in interface FilterPlugin

run

public void run()
Continuously read from our back end and drop the data.

setFilterSource

public void setFilterSource(FilterPlugin source)
Specified by:
setFilterSource in interface FilterPlugin

write

public void write(byte[] b)
            throws IOException
Specified by:
write in interface FilterPlugin