Package com.gigaspaces.serialization
Class BinaryObject
java.lang.Object
com.gigaspaces.serialization.BinaryObject
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
Contains an object serialized in a binary format. This class is used internally to store user
defined objects in the space without reconstructing the original object.
- Since:
- 6.5
- Version:
- 1.0
- Author:
- Niv
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.BinaryObject(byte formatCode, byte[] data) Constructor with data. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getData()Gets the object's binary data.byteGets the serialization format code.inthashCode()voidvoidsetData(byte[] value) Sets the object's binary data.voidsetFormatCode(byte value) Sets the serialization format code.voidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
BinaryObject
public BinaryObject()Default constructor. -
BinaryObject
public BinaryObject(byte formatCode, byte[] data) Constructor with data.
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getFormatCode
public byte getFormatCode()Gets the serialization format code. -
setFormatCode
public void setFormatCode(byte value) Sets the serialization format code. -
getData
public byte[] getData()Gets the object's binary data. -
setData
public void setData(byte[] value) Sets the object's binary data. -
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-