readContent
void readContent(B2Headers responseHeaders,
java.io.InputStream in)
throws B2Exception,
java.io.IOException
Reads the data from the input stream.
Does NOT need to close the stream. The caller of readContent()
will take care of that.
If you don't read to the end of the inputStream, the connection
probably won't be re-usable, so read to the end unless you have
a good reason not to.
- Parameters:
responseHeaders
- the headers from the response
in
- an input stream to read the content of the response
- Throws:
B2Exception
- if there's trouble
java.io.IOException
- if there's an IOException