Documentation of 'visad.data.SocketDataSource' Java class
SocketDataSource
visad.data

Class SocketDataSource



  • public class SocketDataSource
    extends LinkedDataSource
    A class for linking a socket stream to a DataReference. Whenever the source data changes, the source presumably sends the change through the linked socket, and the DataReference is set to point at the new data.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SocketDataSource(java.lang.String name)
      Construct a SocketDataSource with the given name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SocketDataSource

        public SocketDataSource(java.lang.String name)
        Construct a SocketDataSource with the given name.
    • Method Detail

      • open

        public void open(java.lang.String id)
                  throws java.io.IOException,
                         VisADException,
                         java.rmi.RemoteException
        Link to the given socket, updating the local data whenever an update event is sent through that socket.
        Specified by:
        open in class LinkedDataSource
        Throws:
        java.io.IOException
        VisADException
        java.rmi.RemoteException
      • getSocket

        public java.net.Socket getSocket()
        Return the socket connection for this SocketDataSource.
      • writeObject

        public void writeObject(java.lang.Object o)
        Writes the specified object out to the socket.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.