Keep reading in BufferedInputStream.read until in.available() <= 0
Keep reading in BufferedInputStream.read until in.available() <= 0

This corresponds to the documented behavior of OpenJDK's version.

joshuawarner32/avian,getlantern/avian,joshuawarner32/avian,bgould/avian,bigfatbrowncat/avian-pack.avian,marcinolawski/avian,badlogic/avian,lostdj/avian,getlantern/avian,bgould/avian,lostdj/avian,badlogic/avian,lwahlmeier/avian,getlantern/avian,bigfatbrowncat/avian-pack.avian,minor-jason/avian,bigfatbrowncat/avian-pack.avian,bgould/avian,marcinolawski/avian,lwahlmeier/avian,MaartenR/avian,marcinolawski/avian,lwahlmeier/avian,joshuawarner32/avian,dicej/avian,ucdseniordesign/avian,dicej/avian,ucdseniordesign/avian,ucdseniordesign/avian,bgould/avian,minor-jason/avian,marcinolawski/avian,MaartenR/avian,minor-jason/avian,badlogic/avian,minor-jason/avian,badlogic/avian,bigfatbrowncat/avian-pack.avian,dicej/avian,lwahlmeier/avian,getlantern/avian,lostdj/avian,MaartenR/avian,MaartenR/avian,joshuawarner32/avian,dicej/avian,lostdj/avian,ucdseniordesign/avian