Converting string to object
<p>Is it possible to convert a string that was created by Object.ToString() back to the original object i.e:</p>

<pre><code>            public boolean dispatchKeyEvent (KeyEvent event) {     
                appendLog(event.toString());
                return super.dispatchKeyEvent(event);      
            }
</code></pre>

<p>appent log will log every keyevent as a string in a new line. After logging i would like to run the logged keyevents</p>

<p>Is it possible to convert the string logged keyevents to a KeyEvent object?</p>
