Add fast reader code for java