Java2HTML改造手記(2) (轉)
Ja 2HTML改造手記(2)
這次的目標是java2html.class
// File Name: Java2HTML.java
:namespace prefix = o ns = "urn:schemas--com::office" />
package com.java2html;
import java.io.*;
import java.util.Vector;
// Referenced classes of package com.java2html:
// O01, O01050, O01052, BadOptionException,
// O07, JavaDoc
public class Java2HTML
{
private int O01040;
private int O01041;
private boolean O01012;
private boolean O01014;
private boolean O01042;
private String O01002;
private String O01043[];
private JavaDoc O01044[];
private String O01045;
public static void main(String args[])
{
int i;
Java2HTML java2html;
O01 o01;
i = 0;
System.out.println("Java2HTML Version 1.3.2 (iBeyond.org modify)");
System.out.println(O07.O0997);
java2html = new Java2HTML();
o01 = new O01(args);
if(!o01.O04(java2html))
{
return;
}
try
{
java2html.buildJava2HTML();
}
catch(Exception exception)
{
System.err.print(exception.getMessage());
i = 1;
}
System.exit(i);
return;
}
public boolean buildJava2HTML()
throws Exception
{
O01049();
O01050 o01050 = new O01050(O01044);
if(O01043 == null)
{
setJavaDirectorySource(new String[] {
"."
});
}
O01052 o01052 = new O01052(O01043, O01045, O01040, O01041, O01012, O01014, o01050);
if(!O01042)
{
O01052.O01054(O01045, o01052, O01002);
}
o01052.O01055();
return true;
}
private void O01049()
throws IOException
{
(new File(O01045)).mkdirs();
File file = null;
FileWriter filewriter = null;
file = new File(O01045 + File.separator + "stylesheet.css");
filewriter = new FileWriter(file);
filewriter.write(O07.O0998());
filewriter.close();
System.out.println("Created " + file.getAbsolutePath());
if(!O01042)
{
File file1 = new File(O01045 + File.separator + "front.html");
FileWriter filewriter1 = new FileWriter(file1);
filewriter1.write(O07.O0999());
filewriter1.close();
System.out.println("Created " + file1.getAbsolutePath());
file1 = new File(O01045 + File.separator + "index.html");
filewriter1 = new FileWriter(file1);
filewriter1.write(O07.O01001(O01002));
filewriter1.close();
}
}
public void setMarginSize(int i)
{
O01040 = i;
}
public void setTabSize(int i)
{
O01041 = i;
}
public void setHeader(boolean flag)
{
O01012 = flag;
}
public void setSimple(boolean flag)
{
O01042 = flag;
}
public void setFooter(boolean flag)
{
O01014 = flag;
}
public void setTitle(String s)
{
O01002 = s;
}
public void setJavaDirectorySource(String as[])
throws BadOptionException
{
for(int i = 0; i < as.length; i++)
{
File file = new File(as[i]);
if(!file.isDirectory())
{
throw new BadOptionException(as[i] + " is not a directory");
}
}
Vector vector = new Vector();
for(int j = 0; j < as.length; j++)
{
vector = O07.O01020(as[j], vector);
}
O01043 = new String[vector.size()];
for(int k = 0; k < vector.size(); k++)
{
O01043[k] = (String)vector.elementAt(k);
}
}
public void O01059(String as[])
{
O01043 = as;
}
public void setJavaDoc(JavaDoc ajavadoc[])
{
O01044 = ajavadoc;
}
public void setDestination(String s)
{
O01045 = s;
}
public Java2HTML()
{
O01041 = 4;
O01012 = true;
O01014 = true;
O01042 = false;
O01002 = "Java Source";
O01045 = "output";
}
}
這次的程式碼就不如上一個好讀了.沒辦法Decompile就是這樣,如果誰有更好的工具麻煩推薦一下,不勝感激.
欲知後事如何,且聽下回分解.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10752043/viewspace-959613/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Java2HTML改造手記(5) (轉)JavaHTML
- Java2HTML改造手記(7) (轉)JavaHTML
- Java2HTML改造手記(6) (轉)JavaHTML
- Java2HTML改造手記(續) (轉)JavaHTML
- Java2HTML改造手記(1) (轉)JavaHTML
- Java2HTML改造手記(4) (轉)JavaHTML
- Java2HTML改造手記(3) (轉)JavaHTML
- Servlet/JSP 容器開發手記2 (轉)ServletJS
- Windows快速啟動欄拓寬改造記(轉)Windows
- Gentoo 1.4RC_2光碟安裝手記(轉)
- 安裝RedHat7.3並改造的記錄(轉)Redhat
- Oracle DBA手記2Oracle
- sqlrelay 安裝手記(轉)SQL
- MySpy開發手記 (轉)
- DirectX學習手記(-) (轉)
- Knockout.js隨手記(2)JS
- Oracle DBA手記2總結Oracle
- SpringCloud-OAuth2(四):改造篇SpringGCCloudOAuth
- DirectX學習手記(二) (轉)
- cocos2d-x 2.2 開發手記2
- FC6安裝手記(轉)
- jQuery實戰(第2版)小編手記jQuery
- 安裝oracle 11GR2 手記Oracle
- robbin談管理:改造團隊的經驗(2)
- Slackware 10.0 安裝手記(轉)
- Fedora Core 4 Release 安裝手記(轉)
- vue2 + ElementUI 表單驗證手記VueUI
- [轉帖]J2ME學習札記2
- Squid最佳化完全手冊(2)(轉)UI
- moquette改造筆記(一):整合到SpringBoot筆記Spring Boot
- RayLx 1.5 硬碟安裝手記(從FAT)(轉)硬碟
- ESMTP身份驗證機制探索手記 (轉)
- NC50學習手記(2)——初始化
- oracle實驗記錄(手動dupliacate database(2))OracleDatabase
- Vue.js SSR Step by Step (3) - 改造 vue/webpack 腳手架Vue.jsWeb
- 圖片操作系列 —(2)手勢旋轉圖片
- IPv6改造方案:協議轉換技術協議
- Presto改造REST