Java Serialized Objects

You can exchange the structure definitions in this forum.

Moderator: HHD Software Support Team

Java Serialized Objects

Postby arno.nyhm » Thu May 14, 2009 11:54 am

is it possible to create a structure library to read a ser file of java serialized objects?


note: the protocol description:
http://java.sun.com/javase/6/docs/platf ... tocol.html
arno.nyhm
 
Posts: 3
Joined: Thu May 14, 2009 11:50 am

Postby Barfy » Mon May 18, 2009 2:40 pm

It is possible to define virtually any format with Structure Viewer. Currently there are two main scenarios that may make it very hard or impossible to describe with a Structure Viewer:

1. The data format is in fact compressed stream of some other format. Compressed streams usually require sophisticated bit stream manipuilation techniques, which are not implemented in the current version of Structure Viewer.

2. Data format contains variable-length bit streams. Variable-length bit streams are not currently supported by the Structure Viewer.
Barfy
Site Admin
 
Posts: 197
Joined: Thu Mar 09, 2006 2:07 pm
Location: Support Department

Postby arno.nyhm » Mon May 18, 2009 3:25 pm

thanks for your reply.

i have uncompressed ser files with no encryption etc.

i have made some structures etc so it works nice :-) the structure view is a very good tool to peek into hex files in combination with the pattern coloring :-)



but now i am stuck at the process to resolve this parts:

values: // The size and types are described by the
// classDesc for the current object

newHandle: // The next number in sequence is assigned
// to the object being serialized or deserialized

reset: // The set of known objects is discarded
// so the objects of the exception do not
// overlap with the previously sent objects
// or with objects that may be sent after
// the exception


especially at this part:

nowrclass:
values // fields in order of class descriptor


i dont know how to remember the class definitions.
or it is possible to create adhoc structures?


and this:

Code: Select all
newHandle: // The next number in sequence is assigned
// to the object being serialized or deserialized


i dont know how to make this backreferences ... how i can remember the objectstructure.
Last edited by arno.nyhm on Mon May 18, 2009 3:36 pm, edited 1 time in total.
arno.nyhm
 
Posts: 3
Joined: Thu May 14, 2009 11:50 am

Postby arno.nyhm » Mon May 18, 2009 3:32 pm

an other question:

it is possible to assign a public substructure to some patterns?

for example i like to bind the structure "content" to "73 72"
(that means in the ser file "TC_OBJECT" followed by "TC_CLASSDESC")
arno.nyhm
 
Posts: 3
Joined: Thu May 14, 2009 11:50 am

Postby Barfy » Thu May 28, 2009 10:54 am

I don't quite understand your question. But I can suggest you look at the Structure Viewer's documentation. It contains several tools that can help you choose between different structures to bind depending on the source data.
Barfy
Site Admin
 
Posts: 197
Joined: Thu Mar 09, 2006 2:07 pm
Location: Support Department


Return to Structure Library

Who is online

Users browsing this forum: No registered users and 0 guests

cron