Package org.apache.ignite.binary
Class BinaryReflectiveSerializer
- java.lang.Object
-
- org.apache.ignite.binary.BinaryReflectiveSerializer
-
- All Implemented Interfaces:
BinarySerializer
public class BinaryReflectiveSerializer extends Object implements BinarySerializer
Binary serializer which writes object fields using reflection. Transient fields are not written.
-
-
Constructor Summary
Constructors Constructor Description BinaryReflectiveSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadBinary(Object obj, BinaryReader reader)Reads fields from provided reader.voidwriteBinary(Object obj, BinaryWriter writer)Writes fields to provided writer.
-
-
-
Method Detail
-
writeBinary
public void writeBinary(Object obj, BinaryWriter writer) throws BinaryObjectException
Writes fields to provided writer.- Specified by:
writeBinaryin interfaceBinarySerializer- Parameters:
obj- Empty object.writer- Binary object writer.- Throws:
BinaryObjectException- In case of error.
-
readBinary
public void readBinary(Object obj, BinaryReader reader) throws BinaryObjectException
Reads fields from provided reader.- Specified by:
readBinaryin interfaceBinarySerializer- Parameters:
obj- Empty objectreader- Binary object reader.- Throws:
BinaryObjectException- In case of error.
-
-