This discussion is archived
1 Reply Latest reply: Sep 18, 2010 5:18 AM by EJP RSS

Casting to the correct format after Serialization

843790 Newbie
Currently Being Moderated
i have an API which serializes objects passed into the method by a custom application

public void SerializeObject(Object obj)

Customer c = new Customer();

//my api class

this works fine without a problem.

however i need to de-serialize the same file.
since the API has no understanding of the Customer class how do i cast it correctly
(???) in.readObject();

i cannot accept it as an Object type bcos the methods dont get invoked for obvious reasons.

how do i sort this problem.