Code example for ObjectInputStream

Methods: defaultReadObject, readObject

0
	} 
 
	private void readObject(ObjectInputStream in) throws IOException,
			ClassNotFoundException { 
		// transient 以外 
		in.defaultReadObject();
 
		// transient 
		SerializableBitmapWrapper sBitmap = (SerializableBitmapWrapper) in
				.readObject();
		if (sBitmap != null) {
			icon = new BitmapDrawable(sBitmap.getBitmap());
		} 
	} 
 
	private String toString(CharSequence charSeq) {
		return charSeq != null ? charSeq.toString() : null;
	} 
 
	@Override 
	public String toString() {