The invention discloses a method for recovering
Java serialized file data. The method comprises steps as follows: S1, identifiers about data types and structures are analyzed and recorded; S2, intermediate structures are defined and used for storing
data type names, domain names and values of nodes; S3, an intermediate result of the uppermost layer is acquired, and a class definition ID
list is maintained; S4, the intermediate result is spread and converted into
json character strings; S5, structures of classes are extracted, and class templates are generated and used for recovering memory data; S6, complete serialized data are recovered to an memory. The method has the beneficial effects as follows: standard
Java serialized files are parsed into general data in an
JSON format or
XML format under the condition that
raw data structures cannot be obtained; original entity classes are generated for a target platform on the basis that the serialized files are parsed in an
JSON format or an
XML format, and the parsed data are called by the target platform in an object form; the recovered entity classes can be dynamically compiled as .class files for the target platform to use during follow-up
data processing.