org.mbari.siam.operations.utils
Class ExportablePacket
java.lang.Object
org.mbari.siam.operations.utils.ExportablePacket
- All Implemented Interfaces:
- Exportable
public class ExportablePacket
- extends java.lang.Object
- implements Exportable
ExportablePacket wraps DevicePacket objects with an Exportable interface.
|
Field Summary |
protected java.lang.StringBuffer |
_buffer
StringBuffer, to avoid many new String allocations. |
protected DevicePacket |
_packet
|
| Fields inherited from interface org.mbari.siam.distributed.Exportable |
EX_BASE, EX_BOOLEANOBJATT, EX_BYTEARRAYOBJATT, EX_DEVICEMESSAGEPACKET, EX_DEVICEPACKET, EX_DOUBLEOBJATT, EX_FLOATOBJATT, EX_INTEGEROBJATT, EX_LONGOBJATT, EX_MAX, EX_METADATAPACKET, EX_MNEMONICINTEGEROBJATT, EX_SCHEDULESPECIFIEROBJATT, EX_SENSORDATAPACKET, EX_STATE, EX_STATEATTRIBUTE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_buffer
protected java.lang.StringBuffer _buffer
- StringBuffer, to avoid many new String allocations.
_packet
protected DevicePacket _packet
ExportablePacket
public ExportablePacket()
wrapPacket
public void wrapPacket(DevicePacket packet)
- Wrap a DevicePacket.
export
public void export(java.io.DataOutput out)
throws java.io.IOException
- Export the current DevicePacket
- Specified by:
export in interface Exportable
- Throws:
java.io.IOException
importPacket
public DevicePacket importPacket(java.io.DataInput in)
throws java.io.IOException
- Import a DevicePacket
- 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.