Code example for Writer

Methods: write

0
    { 
        if (!writtenHtmlHead)
        { 
            writtenHtmlHead=true;
            completeSections(); 
            out.write("<html><head>");
            String title=(String)properties.get(Title);
            if (title!=null && title.length()>0 && !title.equals(NoTitle))
                out.write("<title>"+title+"</title>");
            head.write(out);
            out.write(base);
            out.write("\n</head>\n");
        } 
    } 
     
    /* ------------------------------------------------------------ */ 
    /** Write HTML page body tag. 
     * Write tags &ltBODY page attributes&gt. 
     */ 
    public void writeBodyTag(Writer out)
         throws IOException 
    { 
        if (!writtenBodyTag)
        { 
            writtenBodyTag = true;          
            out.write("<body "+attributes()+">\n");
        } 
    } 
 
    /* ------------------------------------------------------------ */ 
    /** Write end BODY and end HTML tags. 
     */ 
    public void writeHtmlEnd(Writer out)
         throws IOException 
    { 
        out.write("\n</body>\n");
        out.write("</html>\n");
    } 
     
    /* ------------------------------------------------------------ */ 
    /** Write any body elements of the page. 
     */