I'm socket programming for Android (in Java). How can I convert my socket to a string and convert that string representation back to a socket?

For example, consider a `Socket ss`. What I want is some thing like this:

```
String strss = ss.tostring();

```

and later

```
Socket s = new Socket(strss);

```

I want to save the Socket (i.e. the details needed to recreate that socket later) into a database (as a string) and after that I need to reconvert it to Socket to use it in my app!