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

后端 未结 4 1306
借酒劲吻你
借酒劲吻你 2021-02-13 13:06

I\'m serializing my objects with ObjectOutputStream(FileOutputStream(File)) and deserializing them with the analogous InputStreams. Is there a way to l

4条回答
  •  半阙折子戏
    2021-02-13 13:41

    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.

提交回复
热议问题