I have a class which has a method that is receiving an object as a parameter. This method is invoked via RMI.
public RMIClass extends Serializable { pub
Why don't you create your own class that extends OutputStream or , whatever is the archive writing to ?