byte[] bytes = baos.toByteArray(); ByteArrayInputStream bais = new ByteArrayInputStream(bytes); ObjectInputStream ois = new ToMOInputStream(bais); mo = (java.rmi.MarshalledObject)ois.readObject(); } catch (IOException ioe) {
is = new GZIPInputStream(is); ObjectInputStream ois = new ToMOInputStream(is); mo = (java.rmi.MarshalledObject) ois.readObject(); is.close();