public class SocketDataSource extends LinkedDataSource
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Runnable |
comm
Code for monitoring socket for incoming source data changes.
|
protected java.io.ObjectInputStream |
in
The input stream for the socket connection.
|
protected java.io.ObjectOutputStream |
out
The output stream for the socket connection.
|
protected java.net.Socket |
socket
The socket connection for this SocketDataSource.
|
DEBUG, name| Constructor and Description |
|---|
SocketDataSource(java.lang.String name)
Construct a SocketDataSource with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
getSocket()
Return the socket connection for this SocketDataSource.
|
void |
open(java.lang.String id)
Link to the given socket, updating the local data whenever an
update event is sent through that socket.
|
void |
writeObject(java.lang.Object o)
Writes the specified object out to the socket.
|
dataChanged, getName, getReference, isAliveprotected java.net.Socket socket
protected java.io.ObjectOutputStream out
protected java.io.ObjectInputStream in
protected java.lang.Runnable comm
public SocketDataSource(java.lang.String name)
public void open(java.lang.String id)
throws java.io.IOException,
VisADException,
java.rmi.RemoteException
open in class LinkedDataSourcejava.io.IOExceptionVisADExceptionjava.rmi.RemoteExceptionpublic java.net.Socket getSocket()
public void writeObject(java.lang.Object o)