SerializationDumper icon indicating copy to clipboard operation
SerializationDumper copied to clipboard

Use as a library?

Open paul-griffith opened this issue 4 years ago • 3 comments

Any interest in making this accessible from other Java code?

The company I work for has a process where Java serialized data is stored in persistent files on disk. I'm working on creating a tool for our support reps to inspect this serialized data (to some degree) and came across this tool. Unfortunately, while the main SerializationDumper class is public, there's no public methods on it, so I can't readily make use of it.

I may just fork it (would be happy to contribute back here!) but I was curious if anyone had approached you about this use case.

paul-griffith avatar Dec 06 '21 19:12 paul-griffith

Sounds interesting! This isn't something I've been approached about before but I'd be interested in seeing the results if you do implement this.

NickstaDB avatar Dec 29 '21 21:12 NickstaDB

I was working on Java 17, so I made some fairly significant changes (switch expressions, etc) and I switched to using a ByteBuffer for easy extraction of multi-byte values, but here's the modified code: https://github.com/paul-griffith/kindling/blob/main/src/main/java/nb/deser/SerializationDumper.java

You can see it in-use at the end of this .gif:

paul-griffith avatar Jan 05 '22 17:01 paul-griffith

Oh damn, that looks nice. Glad this proved useful to you! Cheers for sharing the updated code.

NickstaDB avatar Jan 09 '22 21:01 NickstaDB