Image

Imagevalera wrote in Imagejava_dev

readLine

Hi, I'm reading input from a server, and as usual - first come the headers, and then the content. I'm reading it all with BufferedReader.readLine(), until a null is encountered.

Problem is: I'd like to separate the headers from the content. In the input they're separated by a blank line, but I'm not sure what readLine() returns when it encounters a blank line.. supposedly - nothing, but yet if I just print everything, it prints out fine.. so it does return something.

Any ideas?

Thanks!