• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

RMI & SERIALIZATION

I would like to send Image using RMI. The problem is
that Image is an abstract class and it does not implement
Serializable.
How can I do ?
0
SunMan
Asked:
SunMan
1 Solution
 
KajCommented:
One way is to inherit the Image class, and say that it
implements Serializable. Remember that Image is abstract
and that you have to implement the abstract methods.

So here it is:

public class myImageClass extends Image implements java.io.Serializable
{
..
..
}

(You doesn't have to implement (can't implement) anything
from java.io.Serializable, just say that your class implements it)

...I haven't tried this on Image class, but on others.

Kaj

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now