Fix dumb Java Reader API assertion

if you return 0, that means you're at the end. WHY java, WHY would you
return -1?!