Code example for ObjectInputStream

Methods: defaultReadObject, readObject

0
 
 
 
  private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException
  { 
    in.defaultReadObject();
 
    String s = (String) in.readObject();
    if (null != s) {
      mProfileUrl = Uri.parse(s);
    } 
 
    s = (String) in.readObject();
    if (null != s) {
      mImageUrl = Uri.parse(s);
    } 
 
    s = (String) in.readObject();
    if (null != s) {
      mThumbImageUrl = Uri.parse(s);
    } 
 
    s = (String) in.readObject();
    if (null != s) {
      mFullImageUrl = Uri.parse(s);
    } 
  } 
}