public void write ( Writer out , String section , boolean endHtml ) throws IOException { writeHtmlHead ( out ) ; writeBodyTag ( out ) ; Composite s = getSection ( section ) ; if ( s == null ) { if ( section . equals ( Content ) ) writeElements ( out ) ; } else s . write ( out ) ; if ( endHtml ) writeHtmlEnd ( out ) ; out . flush ( ) ; }
Write page section . The page is written containing only the named section . If a head and bodyTag have not been written then they are written before the section . If endHtml is true the end HTML tag is also written . If the named section is Content and it cannot be found then the normal page contents are written .