0

So I'm getting an EOFException with this message:

java.io.EOFException: \n not found: size=1 content=0d...

And the code or line where the Exception occures:

   while ((line = reader.readLine()) != null) {
       stringBuilder.append(line);
   }
  • It helps a little bit but if i close the stream I get an IOException because I work with AsncTasks –  Jun 12 '20 at 20:59

1 Answers1

0

EOFException thrown if the stream ends before all bytes have been read

chu3la
  • 18
  • 5
  • You should add more info if you intend to answer a question. Sources, docs, examples, explanations, etc. Answers don't typically go under 4-5 lines. Otherwise leave a comment. – Nicolas Jun 12 '20 at 20:53
  • This is the same information that I can read in android studio as well (https://prnt.sc/xccITVXfANVz), you should either explain directly or provide some other reference to let users understand the point. – Vivek Thummar Apr 05 '23 at 12:33