do not access underlying input stream if remaining == 0