Adds a resource to the list of resources to be written to an output file or output stream