reader: fixed read-ratio to work on java prior to 1.7