Hook after page is rendered but before display?

I need to post-process a page to fill in content that cannot be generated during the rendering. Is there a means I can use to get the rendered version of a page and change it before display from Java? (i.e. on the server side. NOT Javascript).