Use exhausted() instead
exhausted()
For streaming input it should be Input.endOfInput instead.
Report a problem