Results 1 to 4 of 4
  1. #1
    falven is offline Member
    Join Date
    May 2010
    Posts
    6
    Rep Power
    0

    Default Readable Serialization

    Hello,
    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.
    For example:
    Let's say you have a class person, with fields: Name, height...
    i would like the file to look like this:

    Name
    height

    or some equivalent, without being displayed in byte code...
    Thanks,
    -Falven

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

  3. #3
    falven is offline Member
    Join Date
    May 2010
    Posts
    6
    Rep Power
    0

    Default

    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

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    Quote Originally Posted by falven View Post
    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.

Similar Threads

  1. Replies: 6
    Last Post: 03-12-2010, 04:54 AM
  2. ObjectInputStream wait for readable objects
    By Singing Boyo in forum New To Java
    Replies: 2
    Last Post: 06-08-2009, 03:43 AM
  3. Error while converting trace file to readable txt
    By suresh in forum Forum Lobby
    Replies: 1
    Last Post: 12-04-2008, 07:31 AM
  4. Replies: 0
    Last Post: 04-04-2008, 02:47 PM
  5. Convertin a .DAT file into readable format
    By janakiram.attuluri in forum Advanced Java
    Replies: 1
    Last Post: 12-07-2007, 10:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •