Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    5
    Views
    1,551

    Re: Deserializing objects

    You need a definition for the class that the jvm can use to build the object from the serialized object.
  2. Replies
    5
    Views
    1,551

    Re: Deserializing objects

    Read the serialized object into an instance of the Object class and call getClass() on that object.
    Something like:
    Object obj = readObject()
    S.o.p(obj.getClass())


    You will need code to...
  3. Replies
    5
    Views
    1,551

    Re: Deserializing objects

    For debugging you could use the getClass() method.
    Did you try using instanceof to test the object that was read?
Results 1 to 3 of 3