Hello everyone,
I have a lot of Java Serialized Objects I wish to inspect and transform.
I tried using the naive Java-in-Clojure way to do the following:
(Excuse the iterative style, I'm usually never interfacing with Java directly and it's also a language I'm relatively unfamiliar with, but this doesn't seem to have a clojuristic wrapper.
file that contains object: input.ser
(import '[java.io FileInputStream ObjectInputStream])
(def fis (new FileInputStream "input.ser"))
(def ois (new ObjectInputStream fis)
(.readObject ois) ;; this fails due to a ClassNotFoundException
Is there a way to get the sort-of Deserialized View of the object that I can inspect after loading? The file itself is unreadable because it compresses the bytes before serializing.