Code example for ObjectOutputStream

Methods: defaultWriteObject, writeObject

0
  /*************************************************************************** 
   * Serializable implementation 
   **/ 
  private void writeObject(java.io.ObjectOutputStream out) throws IOException
  { 
    out.defaultWriteObject();
 
    out.writeObject(null != mHighMP3Url ? mHighMP3Url.toString() : null);
    out.writeObject(null != mImageUrl ? mImageUrl.toString() : null);
    out.writeObject(null != mDetailUrl ? mDetailUrl.toString() : null);
    out.writeObject(null != mThumbImageUrl ? mThumbImageUrl.toString() : null);
    out.writeObject(null != mFullImageUrl ? mFullImageUrl.toString() : null);
  } 
 
 
 
  private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException
  { 
    in.defaultReadObject();
 
    String s = (String) in.readObject();