I'm required due to previous implementation to use an InputStream
, I can't use a BufferedReader
.
My test bench used a BufferedReader
and a while loop, like so:
while ((line = br.readLine()) != null)
However br is now required to be an InputStream
(and will be renamed). Is there any way of reading in this fashion with an InputStream
, or do I have to read it bytes at a time and search for the \n
?