serialization - Java: Passing arguments at readObject/writeObject methods -
i override methods readobject/writeobject in order customize serialization of objects. problem these methods take no arguments. there anyway pass parameters in these methods can use them in serialization process?
thank in advance
no there no option pass parameters, why need that.
serialization, de serialization process of writing , reading object state, class should have properties within before being serialized or deserialized.
there shouldn't reason pass parameters these 2 methods.
Comments
Post a Comment