I am trying to make a class of mine Serializable in a readable way, what I mean by this is that I would like to directly print, for example some strings to the file, using the serialization interface.
Let's say you have a class person, with fields: Name, height...
i would like the file to look like this:
or some equivalent, without being displayed in byte code...
As far as I know, serialization creates binary files. The only way to read them is to de-serialize them.
What I mean by readable is in a non-byte code format, with visible Characters or Strings,
let's say you opened the serialized file, you would be able to see Name, Age... etc
Again as I stated above, serialization simply doesn't work this way. This idea won't fly.
Originally Posted by falven