public abstract class SocketcandConnection
extends java.lang.Object
BCMConnection and RAWConnection
extend this class.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
busName |
protected java.lang.String |
host |
protected int |
port |
| Constructor and Description |
|---|
SocketcandConnection() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBusName() |
protected java.lang.String |
getElement()
This method reads data from an
InputStreamReader and tries to
extract elements that are enclosed by '<' and '>'. |
java.lang.String |
getHost() |
FrameListener |
getListener() |
int |
getPort() |
protected void |
setInput(java.io.InputStreamReader stream) |
void |
setListener(FrameListener receiver) |
protected java.lang.String busName
protected int port
protected java.lang.String host
public FrameListener getListener()
public void setListener(FrameListener receiver)
public java.lang.String getBusName()
public java.lang.String getHost()
public int getPort()
protected void setInput(java.io.InputStreamReader stream)
protected java.lang.String getElement()
throws java.io.IOException,
java.lang.InterruptedException,
java.net.SocketTimeoutException
InputStreamReader and tries to
extract elements that are enclosed by '<' and '>'. The Reader must be set
via setInput() before calling getElement().
A buffer is used to
construct elements that need multiple reads. Whitespace between the
elements is ignored.
The method blocks until an element can be returned.in - the InputStreamReader from which should be readjava.io.IOExceptionjava.lang.InterruptedExceptionjava.net.SocketTimeoutExceptionData In Motion Consulting GmbH