An Optical Character Recognition Framework purely in Java