Cloning/Multiple reading an Input Stream from an HttpResponse
问题 I have an HttpResponse containing some data (json/xml, which can contain a large amount of data). I am using a function that reads and uses an input stream with this data (which is closed, and cannot be changed either than maybe accepting a string instead of an inputstream), and a different function that validates the data (general validation, not related to the actual usage which is a part I can't touch). I would like to do something like this: HttpResponse response = getTheResponse();