|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.mud.jta.Plugin | +--de.mud.jta.plugin.BSX
ultrahighspeed-BSX-command-parser as Plugin for JTA 2.0. Features:
Field Summary | |
protected boolean |
ignoreErrors
ignoreErrors in BSX data |
protected java.awt.Panel |
panel
the container for this plugin |
protected static java.lang.String |
VERSION
the BSX style version of this Parser |
protected BSXDisplay |
visual
the canvas that contains the Gfx |
Fields inherited from class de.mud.jta.Plugin |
bus, id |
Constructor Summary | |
BSX(PluginBus bus,
java.lang.String id)
initialize the parser |
Method Summary | |
protected boolean |
equals(byte[] a,
byte[] b)
compares two byte[] |
java.awt.Menu |
getPluginMenu()
Get the menu entry for this component. |
java.awt.Component |
getPluginVisual()
Get the visible components from the plugin. |
protected int |
hexToInt(byte[] b)
computes an integer from an byte[2] containing a hexadecimal representation in capitol letters (0-9,A-F) |
protected int |
parse(byte[] b,
int length)
parse the input buffer |
int |
read(byte[] b)
Read a block of data from the back end. |
protected void |
reset()
reset the parser |
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. |
Methods inherited from class de.mud.jta.Plugin |
error |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected BSXDisplay visual
protected java.awt.Panel panel
protected static java.lang.String VERSION
protected boolean ignoreErrors
Constructor Detail |
public BSX(PluginBus bus, java.lang.String id)
Method Detail |
public java.awt.Component getPluginVisual()
VisualPlugin
getPluginVisual
in interface VisualPlugin
de.mud.jta.VisualPlugin
public java.awt.Menu getPluginMenu()
VisualPlugin
getPluginMenu
in interface VisualPlugin
de.mud.jta.VisualPlugin
public void setFilterSource(FilterPlugin source)
FilterPlugin
setFilterSource
in interface FilterPlugin
de.mud.jta.FilterPlugin
source
- the data sourcepublic int read(byte[] b) throws java.io.IOException
FilterPlugin
read
in interface FilterPlugin
de.mud.jta.FilterPlugin
b
- the buffer to read the data intopublic void write(byte[] b) throws java.io.IOException
FilterPlugin
write
in interface FilterPlugin
de.mud.jta.FilterPlugin
b
- the buffer to be sentprotected void reset()
protected int parse(byte[] b, int length) throws java.io.IOException
b
- input buffer byte arraylength
- count of valid bytes in bufferprotected boolean equals(byte[] a, byte[] b)
protected int hexToInt(byte[] b)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |