Code example for ObjectOutputStream

Methods: defaultWriteObjectwriteObject

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();
 
Stop searching for code, let great code find you!  Add Codota to your java IDE