Code example for ObjectInput

Methods: readObject

0
 
	@Override 
	public void readExternal(ObjectInput objectInput)
		throws ClassNotFoundException, IOException {
 
		_methodHandler = (MethodHandler)objectInput.readObject();
	} 
 
	@Override 
	public void writeExternal(ObjectOutput objectOutput) throws IOException {
		MethodHandler methodHandler = _methodHandler;
 
		if (methodHandler == null) {
			methodHandler = IdentifiableBeanInvokerUtil.createMethodHandler(
				_methodInvocation);
		} 
 
		objectOutput.writeObject(methodHandler);
	}