Ja Java2HTML改造手记(7)
在前边我已经给O07添加了setEncoding方法了.并且这个类已经有了s2用来保存用户指定的编码.看来准备工作已经完成.进入O07类吧.
static String O0999()
{
DateFormat dateformat = DateFormat.getDateTimeInstance(2, 3);
return "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\""
+ O0995 + "<HTML>"
+ O0995 + "<HEAD>"
+ O0995 + "<META NAM" +"E=\"GENERATOR\" CONTENT=\"" + "Java2HTML Version 1.4.0" + "\">"
+ O0995+ "<meta HTTP-EQUIV=\"content-type\" CONTENT=\"text/html; charset="+s2+"\">"
+ O0995 + "<TITLE>Java2HTML #ibeyond.org modify</TITLE>"
+ O0995 + "<LINK REL =\"stylesheet\" TYPE=\"text/css\" HREF=\"stylesheet.css\" TITLE=\"Styl" + "e\">"
+ O0995 + "</HEAD>"
+ O0995 + "<BODY>"
+ O0995 + "<p><strong>Instructions:-</strong></p>"
+ O0995 + "<ul>"
+ O0995 + "<li>Top-Left Panel Selects a Package</li>"
+ O0995 + "<li>Bottom-Left Panel Selects a Java File</li>"
+ O0995 + "<li>Text displayed like <FONT ID=\"Classes\"><A href=\"#\">this</A></FONT> repre" + "sents a link to another Java source, clicking on it selects it in this panel.</l" + "i>"
+ O0995 + "</ul>"
+ O0995 + "<p><strong>Credits:-</strong></p>"
+ O0995 + "<ul><li>Produced by " + "<a href=\"http://www.java2html.com\" TARGET=\"_top\"><em>" + "Java2HTML Version 1.4.0 #ibeyond.org modify" + "</em></a> on the " + dateformat.format(new Date()) + "</li></ul>"
+ O0995 + "<em>(If you like this tool, please <a href=\"mailto:?subject=http://www.java2htm" + "l.com\">email</a> the reference <A href=\"http://www.java2html.com\" TARGET=\"_t" + "op\">http://www.java2html.com</A> to a colleague.)<br><center><a href=\"http://www.ibeyond.org\">www.ibeyond.org</a> modify</center></em>"
+ O0995 + "</BODY>"
+ O0995 + "</HTML>"
+ O0995;
}
static String O01001(String s)
{
return "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">"
+ O0995 + "<HTML>"
+ O0995 + "<HEAD>" + O0995
+ O0995 + "<META NAME=\"GENERATOR\" CONTENT=\"" + "Java2HTML Version 1.4.0" + "\">"
+O0995+ "<meta HTTP-EQUIV=\"content-type\" CONTENT=\"text/html; charset="+s2+"\">"
+ O0995 + "<TITLE>" + s + " (Java2HTML #iBeyond.org modiy)</TITLE>" + O0995
+ O0995 + "</HEAD>" + O0995 + "<FRAMESET cols=\"30%, 70%\">"
+ O0995 + "<FRAMESET rows=\"30%, 70%\">"
+ O0995 + "<FRAME src=\"packages.html\" name=\"packageListFrame\">"
+ O0995 + "<FRAME src=\"AllClasses.html\" name=\"packageFrame\">"
+ O0995 + "</FRAMESET>"
+ O0995 + "<FRAME src=\"front.html\" name=\"SourceFrame\">"
+ O0995 + "</FRAMESET>"
+ O0995 + "<NOFRAMES>"
+ O0995 + "<H2>Frame Alert</H2>"
+ O0995 + "<P>"
+ O0995 + "This document is designed to be viewed using the frames feature. If you see this" + " message, you are using a non-frame-capable web client."
+ O0995 + "</NOFRAMES>"
+ O0995 + "</HTML>";
}
public static String O01004(String s, String s1)
{
return "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\">"
+ O0995 + "<HTML>"
+ O0995 + "<HEAD>"
+ O0995 + "<LINK REL=STYLESHEET TYPE=\"text/css\" HREF=\"" + s + "\" TITLE=\"Style\">"
+ O0995 + "<meta HTTP-EQUIV=\"content-type\" CONTENT=\"text/html; charset="+s2+"\">"
+ O0995 + "<META NAME=\"GENERATOR\" CONTENT=\"" + "Java2HTML Version 1.4.0" + "\">"
+ O0995 + "<TITLE>" + s1 + " (Java2HTML #iBeyond.org modify)</TITLE>"
+ O0995 + "</HEAD>"
+ O0995 + "<BODY>";
}
以上是我修改过的O07类中的部分资源.看起来很多实际上很简单的,因为其中有一个规律,只要你在字符串中发现"<META NAME=\"GENERATOR\" CONTENT=\"" + "Java2HTML Version 1.4.0" + "\">",那么不用客气在后边添加上”+ O0995 + "<meta HTTP-EQUIV=\"content-type\" CONTENT=\"text/html; charset="+s2+"\">" “就行了.
罗里罗嗦的说了这么多.不知道各位看官有没有看明白,呵呵,也许很多看官看了个开头就看不下去了.确实,我的文字功底还差的太多,不过我会努力提高的,也行将来被计算机行业扫地出门了,那就去作写字师父好了.关于java2html这个软件我还要罗嗦一点,各位一定要尊重作者的劳动,保留作者的版权信息呀.以上修改过的代码和版本在我的网站上已经给出各位可以自行下载编译过的版本和部分原代码(因为我只修改了一部分)所以是部分源代码.
版权归iBeyond(http://www.ibeyond.org)所有,转载请著名出处并保留版权信息.可以通过email和我联系(csdn@ibeyond.org)