Package org.jgroups.tests
Class MessageSendTest.MyData
java.lang.Object
org.jgroups.tests.MessageSendTest.MyData
- All Implemented Interfaces:
Streamable
- Direct Known Subclasses:
MessageSendTest.MySizeData
- Enclosing class:
MessageSendTest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedtoString()voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.
-
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
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Throws:
IOException
-
readFrom
Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Throws:
IOException
-