try { ObjectOutputStream oout = new uncObjectOutputStream(input); oout.writeObject(value); oout.flush(); } catch (IOException ex) { throw new MARSHAL(ex + ":" + ex.getMessage()); }
Vio.write(output, value);
  public static void write(OutputStream input, Serializable value)  {    // Explicitly prevent the stream from closing as we may need    // to read the subsequent bytes as well. Stream may be auto-closed    // in its finalizer.    try      {        ObjectOutputStream oout = new uncObjectOutputStream(input);        oout.writeObject(value);        oout.flush();      }    catch (IOException ex)      {        throw new MARSHAL(ex + ":" + ex.getMessage());      }  }