1 Reply Latest reply: Sep 18, 2010 7:18 AM by EJP RSS

    Casting to the correct format after Serialization

      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.