public MarshalledObject(Object obj) throws java.io.IOException
public MarshalledObject(Object obj) throws IOException
  public MarshalledObject(Object obj) throws java.io.IOException  {    ByteArrayOutputStream objStream = new ByteArrayOutputStream();    RMIMarshalledObjectOutputStream stream = new RMIMarshalledObjectOutputStream(objStream);    stream.writeObject(obj);    stream.flush();    objBytes = objStream.toByteArray();    locBytes = stream.getLocBytes();        //The following algorithm of calculating hashCode is similar to String    hash = 0;    for (int i = 0; i < objBytes.length; i++)      hash = hash * 31 + objBytes[i];    if(locBytes != null)      for (int i = 0; i < locBytes.length; i++)	hash = hash * 31 + locBytes[i];  }