title: In java how do I serialize a class that is not marked Serializable?
body: <p>There is a specific class in a third party library that I want to serialize.  How would I go about doing this?  </p>
  
  <p>I'm assuming I will have to write a method that takes in an object of the class and uses reflection to get the private member values.  Then for deserialization I would use reflection to put the values back.  </p>
  
  <p>Would this work? Is there an easier way? </p>