Java 类javax.swing.text.html.HTMLEditorKit.Parser 实例源码

项目:WikiLink    文件:WebHelper.java   
public static HTMLDocument getHTMLDocument(String url) {
    try {
        Reader stringReader = new StringReader(getResponse(url));
        HTMLEditorKit htmlKit = new HTMLEditorKit();
        HTMLDocument htmlDoc = (HTMLDocument) htmlKit.createDefaultDocument();
        Parser parser = new ParserDelegator();
        parser.parse(stringReader, htmlDoc.getReader(0), true);
        return htmlDoc;
    } catch(Exception e) {
        e.printStackTrace();
    }
    return null;
}
项目:cn1    文件:HTMLDocument.java   
public void setParser(final HTMLEditorKit.Parser parser) {
    this.parser = parser;
}
项目:cn1    文件:HTMLDocument.java   
public HTMLEditorKit.Parser getParser() {
    return parser;
}
项目:freeVM    文件:HTMLDocument.java   
public void setParser(final HTMLEditorKit.Parser parser) {
    this.parser = parser;
}
项目:freeVM    文件:HTMLDocument.java   
public HTMLEditorKit.Parser getParser() {
    return parser;
}
项目:freeVM    文件:HTMLDocument.java   
public void setParser(final HTMLEditorKit.Parser parser) {
    this.parser = parser;
}
项目:freeVM    文件:HTMLDocument.java   
public HTMLEditorKit.Parser getParser() {
    return parser;
}