Class MessageSendTest.MyData

java.lang.Object
org.jgroups.tests.MessageSendTest.MyData
All Implemented Interfaces:
Streamable
Direct Known Subclasses:
MessageSendTest.MySizeData
Enclosing class:
MessageSendTest

public static class MessageSendTest.MyData extends Object implements Streamable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected byte[]
     
    protected int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    MyData(int num, byte[] buf)
     
    MyData(int num, int length)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed
     
    void
    Write the entire state of the current object (including superclasses) to outstream.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • num

      protected int num
    • data

      protected byte[] data
  • Constructor Details

    • MyData

      public MyData()
    • MyData

      public MyData(int num, int length)
    • MyData

      public MyData(int num, byte[] buf)
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • writeTo

      public void writeTo(DataOutput out) throws IOException
      Description copied from interface: Streamable
      Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed
      Specified by:
      writeTo in interface Streamable
      Throws:
      IOException
    • readFrom

      public void readFrom(DataInput in) throws IOException
      Description copied from interface: Streamable
      Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed
      Specified by:
      readFrom in interface Streamable
      Throws:
      IOException