public void decorate ( final Writer writer , final char [ ] pageContent , final char [ ] decoraContent ) throws IOException { DecoraTag [ ] decoraTags = parseDecorator ( decoraContent ) ; parsePage ( pageContent , decoraTags ) ; writeDecoratedPage ( writer , decoraContent , pageContent , decoraTags ) ; }
Decorates page content with decorator template and outputs the result .