Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Sep 18, 2010 7:18 AM by
Casting to the correct format after Serialization
Sep 18, 2010 6:13 AM
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
i cannot accept it as an Object type bcos the methods dont get invoked for obvious reasons.
how do i sort this problem.
This content has been marked as final.
Show 1 reply
Re: Casting to the correct format after Serialization
Sep 18, 2010 7:18 AM
in response to
You have to know what youve serialized and cast it to the correct type. Or use instanceof.