Annotation Interface SerCustomWrite
This annotation is used to customize the serialization process of an object. It is executed when
an object is about to be serialized. The implementation may:
- update the object state, including
SerId
fields - call
SerializerHelper.saveStandard()
(mandatory) - optionally, update the object before returning
Required prototype:
private void save(SerializerHelper writer) [throws IOException]Note that the visibility MUST be private to make sure that sub-classes do not accidentally override a custom writer method of a super-class.