`while (data.remaining() > 0) {` 

In fact, the whole block can be replaced with `while (data.reamaining() > 0 && 
channel.read(data) >= 0) {};` Also see note about read() returning 0. 

[ Full content available at: https://github.com/apache/beam/pull/6440 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to