jamod at SF

net.wimpi.modbus.io
Interface Transportable

All Known Subinterfaces:
ModbusMessage
All Known Implementing Classes:
ModbusMessageImpl

public interface Transportable

Interface defining a transportable class.

Version:
1.2rc1 (09/11/2004)
Author:
Dieter Wimberger

Method Summary
 int getOutputLength()
          Returns the number of bytes that will be written by writeTo(DataOutput).
 void readFrom(java.io.DataInput din)
          Reads this Transportable from the given DataInput.
 void writeTo(java.io.DataOutput dout)
          Writes this Transportable to the given DataOutput.
 

Method Detail

getOutputLength

public int getOutputLength()
Returns the number of bytes that will be written by writeTo(DataOutput).

Returns:
the number of bytes that will be written as int.

writeTo

public void writeTo(java.io.DataOutput dout)
             throws java.io.IOException
Writes this Transportable to the given DataOutput.

Parameters:
dout - the DataOutput to write to.
Throws:
java.io.IOException - if an I/O error occurs.

readFrom

public void readFrom(java.io.DataInput din)
              throws java.io.IOException
Reads this Transportable from the given DataInput.

Parameters:
din - the DataInput to read from.
Throws:
java.io.IOException - if an I/O error occurs or the data is invalid.

jamod at SF

Copyright © 2002-2004 jamod development team.