java_gen: add accessor to reader to offactory