Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

When reading bad input from a TextInputStream, the stream stops reading input. How can I make it read again?

bad input read Reading Stops stream
0
Posted

When reading bad input from a TextInputStream, the stream stops reading input. How can I make it read again?

0

You can’t. The TextInputStream class was designed to work this way. If you want to make your input more robust, read the input a line at a time, and analyze each input line separately. See section 6.3.2 for a typical example. I could have designed the class differently.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123