您如何使用Java呈现HTML? [英] How do you render HTML using Java?

查看:106
本文介绍了您如何使用Java呈现HTML?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用Java构建Web浏览器.我已经使用解析器(JTIDY)将HTML页面解析为DOM文档.我知道渲染意味着DOM文档的图形表示.但是我不知道Java中HTML呈现的工程过程是什么.在Java中,有一个JEditorkit可以解析和呈现,但是它的格式不正确.所以我想要一个更好的解决方案.

I am working on building a web browser in Java. I have used a parser (JTIDY) to parse the HTML page into a DOM document. I know that rendering means the graphical representation of DOM document. But I don't know what the engineering process is for HTML rendering in Java. In Java there is a JEditorkit to parse and render, but it is not well-formed. So I want a better solution.

我的问题是:HTML渲染和以Java显示完整网页的实际过程是什么?

My question is: what is the actual process of HTML rendering and showing the complete web page in Java?

推荐答案

您可以尝试 Cobra渲染器&解析器飞碟项目.

这篇关于您如何使用Java呈现HTML?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆