public interface DataSerializable
and relies on reflection to create instances using class names.
Conforming classes must provide a no-arguments constructor to facilitate the creation of their instances during the deserialization. Anonymous, local and non-static member classes can't satisfy this requirement since their constructors are always accepting an instance of the enclosing class as an implicit argument, therefore they must be avoided.
void writeData(ObjectDataOutput out) throws IOException
out - output
IOException - if an I/O error occurs. In particular,
IOException may be thrown if the
output stream has been closed.
Copyright © 2023 Hazelcast, Inc.. All rights reserved.