Code example for HTMLDocument

Methods: setAsynchronousLoadPrioritysetParsersetTokenThreshold

0
        StyleSheet ss = new StyleSheet();
 
        ss.addStyleSheet(styles);
 
        HTMLDocument doc = new CustomHTMLDocument(ss);
        doc.setParser(getParser());
        doc.setAsynchronousLoadPriority(4);
        doc.setTokenThreshold(100);
        return doc;
    } 
 
    /** 
     * Gets the set of styles to be used to render HTML elements. 
     * 
     * @return A <code>StyleSheet</code> containing the default HTML element styles. 
     */ 
    public StyleSheet getStyleSheet()
    { 
        StyleSheet style;