Please help me.... I struck up at reading data in a serialized file. It is a text file with some special characters. My question is - Is it a real serialized file or some bad file? If it a real good one please tell me which method i have to use to read? Actually i have to read records with time stamps from this file and have to do some calculations on them.
FILE CONTENTS :
¬í sr java.util.ArrayListxÒ^TM^Ça I sizexp w sr *com.progress.recruitment.test.email.Record¨ƒù~‹6 I aI bI cI dI idI timexp sq ~ ¥¤sq ~
Ûsq ~ gÒsq ~ 5ásq ~ E.x
It looks like it might contain serialized Java objects, since it contains Java class names. Have you tried reading it as such to see what happens?
Or are you asking how to do that? In which case why not just start with the code in the Java serialization tutorial and go from there?
Or did you not know there was such a tutorial? Google keywords: "java serialization tutorial".