You can find the source code as attachment of the first message.
It was written almost 10 years ago with JDK1.0.2
Some code might need to be modified to use with latest JDK.