By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,034 Members | 820 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,034 IT Pros & Developers. It's quick & easy.

how to serialize this?

P: n/a
I want to serialize a class into a file to load it again later on. But
the class holds instances of unserializable classes, from a package
that i downloaded from the web and don't want to make changes to it.
Is it possible to make them serializable without changing the
downloaded source code?

public class MyClass implements Serializable {
private UnSerializableStuff my_data;
...
}

Dominik
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
public class MyClass implements Serializable {
transient private UnSerializableStuff my_data;
...
}

Dominik Kaspar wrote:
I want to serialize a class into a file to load it again later on. But
the class holds instances of unserializable classes, from a package
that i downloaded from the web and don't want to make changes to it.
Is it possible to make them serializable without changing the
downloaded source code?

public class MyClass implements Serializable {
private UnSerializableStuff my_data;
...
}

Dominik


Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.