javaeclipseserializationobjectviewer

Does Eclipse have an editor/viewer for java serialized files?


I'm serializing my objects with ObjectOutputStream(FileOutputStream(File)) and deserializing them with the analogous InputStreams. Is there a way to look inside of these serialized files (in eclipse preferably), so I can check, if all necessary attributes were written?

edit: google search was negative


Solution

  • Write some tests (using Eclipse's built-in JUnit support).

    The only way to "look inside" these files is to use ObjectInputStream(FileInputStream(File)), unless you're a bytecode guru and use a hex editor. If you actually have some testing, there is no need to "look inside" anything.