基于Java的浏览器的设计与实现毕业设计

基于Java的浏览器的设计与实现

—后台功能子系统

学 院: 软件工程

专 业: 指导教师:

2014年9月

基于Java的浏览器的设计与实现后台功能子系统

摘 要

当今世界是一个以计算机网络为核心的信息时代,互联网为人们快速获取、发布和传递信息提供了便捷,而浏览器作为互联网上查找信息的重要工具,给人们提供了巨大而又宝贵的信息财富,受到了大家的高度重视。网页浏览器是显示网页服务器或档案系统内的文件,并让用户与这些文件互动的一种软件。它用来显示在万维网或局域网内的文字、影像及其他资讯。浏览器作为重要的系统应用软件是不可或缺的。但目前,浏览器产品的市场被少数国外大公司垄断,众多的小型浏览器也尚处于发展期,而国内的自主技术的浏览器更屈指可数,刚刚进入实用阶段。迫切需要更多的人来关注浏览器技术,开发中国自主知识产权的浏览器产品。

本文围绕着浏览器的编程与开发,讲述了在JDK5.0中进行浏览器开发的一些技术和笔者的一些心得,着重讲解了笔者在毕业设计中所实现的一个浏览器程序—Brower。

本文用软件工程的开发过程,详细论述了浏览器的分析、设计及代码实现,最终实现一个具有能同时浏览多个网页,可查询历史浏览记录,可以实现超链接监听并响应,以及对非法网站的过滤等基本功能的浏览器。 本文以一个实际运作的浏览器 Browser 为主轴介绍浏览器的设计理念与方法,同时讲述浏览器中各个模块如何互相协同运作,来完成一个呈现网页的工作。HTML词法分析是本文着重讨论的技术问题,给出了详尽的数据结构,程序流程,并且还介绍了一些基于Java的HTML解析器。另外,Java Swing技术也是本文介绍的浏览器所使用的一种主要的技术,通过使用各个组件,并增加监听器和事件处理等操作,最终形成一个具有一定事物处理能力的浏览器的界面部分。

关键字:浏览器,Java Swing,HTML词法分析,事件

The Design And Implementation Of A Browser Based On Java

Abstract

Nowadays is a computer network as the core of the information age. The Internet provides a convenient for people to quickly get the release and transfer information. And the Browser as a impartment tool for us to search information, provides people with a huge and valuable the wealth of information. the Homepage Browser, which becomes one of the essential software for surf online, has already obtained widely application. Under the leading position of IE, all kinds of domestic and foreign browser software have appeared like mushroom growth breeding lives. The homepage browser's development and the application have become a computer domain big hot spot in recent years.

This article revolves Browser's programming and development, narrated some technologies and author's attainments of carrying the browser in JDK5.0 development, explained browser procedure—Brower which emphatically in the achievement of graduation project.

This article uses software engineering's performance procedure, elaborated Browser's analysis, design and code achievement, finally achieved the Browser which has simultaneously glances over many homepages. It can inquire the history to glance over the record, realize opens and preserves the homepage, the ultra connection monitors and responds, with to illegal website filtration and so on. This article take actual operation's browser—Browser as the main axle,introduced browser's design idea and method, simultaneously narrated how each module does coordinate the operation mutually in the browser, completes one to present the homepage the work. The HTML lexical analysis is the technical question which discusses emphatically, has given the exhaustive construction of data, the procedure flow, and also introduced some based on the Java HTML revolver. One kind of main technology which moreover, this article is also introduces the Swing technology of JAVA, through uses each module, and increases

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4