org.mbari.siam.distributed
Class DevicePacketStream

java.lang.Object
  extended by org.mbari.siam.distributed.DevicePacketStream
All Implemented Interfaces:
java.io.Serializable

public class DevicePacketStream
extends java.lang.Object
implements java.io.Serializable

DevicePacketStream is a source of DevicePacket objects.

Author:
Tom O'Reilly
See Also:
Serialized Form

Constructor Summary
DevicePacketStream(java.net.InetAddress serverHost, int serverPort)
          Creates a DevicePacketStream, using specified host and port as the source.
 
Method Summary
protected  java.io.ObjectInputStream createInputStream()
           
 DevicePacket read()
          Read next DevicePacket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DevicePacketStream

public DevicePacketStream(java.net.InetAddress serverHost,
                          int serverPort)
Creates a DevicePacketStream, using specified host and port as the source.

Method Detail

read

public DevicePacket read()
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Read next DevicePacket.

Throws:
java.io.IOException
java.lang.ClassNotFoundException

createInputStream

protected java.io.ObjectInputStream createInputStream()
                                               throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.