Serializing

View: New views
2 Messages — Rating Filter:   Alert me  

Serializing

by Alexander Sidorov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What is a correct way for serializing/deserializing Java classes converted by IKVM in .NET (so that transient keyword was considered)? Should I use .NET formatters like BinaryFormatter or converted Java ObjectOutputStream/ObjectInputStream?

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ikvm-developers mailing list
Ikvm-developers@...
https://lists.sourceforge.net/lists/listinfo/ikvm-developers

Re: Serializing

by Jeroen Frijters :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Alexander Sidorov wrote:
> What is a correct way for serializing/deserializing Java classes
> converted by IKVM in .NET (so that transient keyword was considered)?
> Should I use .NET formatters like BinaryFormatter or converted Java
> ObjectOutputStream/ObjectInputStream?

Use ObjectOutputStream/ObjectInputStream and consider subclassing them to deal with class resolution (if you want to be able to load types from different assemblies, for example).

In the next release there will be automatic support for .NET serialization (see http://weblog.ikvm.net/?date=2009-08-11) but this is really only intended for cross AppDomain remoting.

Regards,
Jeroen


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ikvm-developers mailing list
Ikvm-developers@...
https://lists.sourceforge.net/lists/listinfo/ikvm-developers