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.