Added a method to get a resource as a Reader.