private byte nextByte ( ByteBuffer inputBuffer ) throws IOException { getAtLeastBytes ( inputBuffer , 1 , ReadMode . ONLY_WHEN_EMPTY ) ; return inputBuffer . get ( ) ; }
Reads the next available byte from the input buffer provided waiting if data is not available .