I have a binary file containing Java Serialized objects (value objects), but I don't have access to the class that was serialized to create these objects. Without a class file, the JVM does not allow me to read objects with objectInputStreamInstance.readObject () and rightly throws java.lang.ClassNotFoundException.
Is there a library that can help retrieve data in XML or another standard format? For example, if the Person class is serialized below and stored in a file, I would like to extract data from it:
Class definition
class Person implements Serializable { int age; String name; public Person(int age, int name) { this.age = age; this.name = name; } }
The required extraction format (without access to the class file)
<Person> <age>10</age> <name>Name</name> </Person>
I also checked the following, but did not get what I was looking for:
Thank you for your help.
Regards, Gursev
source share