How to read an http input stream

后端 未结 5 579
孤独总比滥情好
孤独总比滥情好 2020-12-01 07:24

The code pasted below was taken from java docs on HttpURLConnection.

I get the following error:

readStream(in) 

as there is no suc

5条回答
  •  一整个雨季
    2020-12-01 08:06

    It looks like the documentation is just using readStream() to mean:

    Ok, we've shown you how to get the InputStream, now your code goes in readStream()

    So you should either write your own readStream() method which does whatever you wanted to do with the data in the first place.

提交回复
热议问题