Package org.jgroups.util
Class ObjectWrapperSerializable
java.lang.Object
org.jgroups.util.ObjectWrapperPrimitive
org.jgroups.util.ObjectWrapperSerializable
- All Implemented Interfaces:
SizeStreamable,Streamable
Wraps an object and its serialized form.
- Since:
- 5.0.0
-
Field Summary
FieldsFields inherited from class org.jgroups.util.ObjectWrapperPrimitive
obj -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedintReturns the size (in bytes) of the marshalled objecttoString()voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.Methods inherited from class org.jgroups.util.ObjectWrapperPrimitive
getObject
-
Field Details
-
serialized
-
-
Constructor Details
-
ObjectWrapperSerializable
public ObjectWrapperSerializable() -
ObjectWrapperSerializable
-
-
Method Details
-
setObject
- Overrides:
setObjectin classObjectWrapperPrimitive
-
getSerialized
-
getLength
public int getLength()- Overrides:
getLengthin classObjectWrapperPrimitive
-
toString
- Overrides:
toStringin classObjectWrapperPrimitive
-
serializedSize
public int serializedSize()Description copied from interface:SizeStreamableReturns the size (in bytes) of the marshalled object- Specified by:
serializedSizein interfaceSizeStreamable- Overrides:
serializedSizein classObjectWrapperPrimitive
-
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- Overrides:
writeToin classObjectWrapperPrimitive- 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- Overrides:
readFromin classObjectWrapperPrimitive- Throws:
IOExceptionClassNotFoundException
-