de.mud.jta.plugin
public class Telnet extends Plugin implements FilterPlugin
Maintainer: Matthias L. Jugel
| Modifier and Type | Field and Description |
|---|---|
protected TelnetProtocolHandler |
handler |
protected FilterPlugin |
source |
| Constructor and Description |
|---|
Telnet(PluginBus bus,
java.lang.String id)
Create a new telnet plugin.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(PluginConfig cfg) |
FilterPlugin |
getFilterSource() |
int |
read(byte[] b)
Read a block of data from the back end.
|
void |
setFilterSource(FilterPlugin source)
Set the source plugin where we get our data from and where the data
sink (write) is.
|
void |
write(byte[] b)
Write a block of data to the back end.
|
protected FilterPlugin source
protected TelnetProtocolHandler handler
public Telnet(PluginBus bus, java.lang.String id)
public void configure(PluginConfig cfg)
public void setFilterSource(FilterPlugin source)
FilterPluginsetFilterSource in interface FilterPluginsource - the data sourcepublic FilterPlugin getFilterSource()
getFilterSource in interface FilterPluginpublic int read(byte[] b)
throws java.io.IOException
FilterPluginread in interface FilterPluginb - the buffer to read the data intojava.io.IOExceptionpublic void write(byte[] b)
throws java.io.IOException
FilterPluginwrite in interface FilterPluginb - the buffer to be sentjava.io.IOException