My old java code, maybe something useful, but probably not. Rescued from my old CVS repos.