Given that Groovy does not have a do-while statement, how can I iterate over all bytes in an input stream?
Per a previous version of the Groovy user guide:
The groovy (version 1.8+) way would be like this:
inputStream.eachByte(BUFFER_SIZE) { buffer, numRead -> ... }