亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? javaextract.java

?? java applet 曲線坐標 動態是先曲線坐標以及取直運算
?? JAVA
字號:
import java.util.jar.*;import java.util.*;import java.util.zip.ZipEntry;import java.lang.reflect.Field;import java.lang.reflect.Method;import org.apache.poi.hssf.usermodel.HSSFWorkbook;import org.apache.poi.hssf.usermodel.HSSFSheet;import org.apache.poi.hssf.usermodel.HSSFRow;import org.apache.poi.hssf.usermodel.HSSFCell;import org.apache.poi.hssf.usermodel.HSSFCellStyle;import org.apache.poi.hssf.usermodel.HSSFFont;import org.apache.poi.hssf.util.HSSFColor;import java.io.FileOutputStream;/** * This class  would extract information  * from a Java Archive File and write information * about the classes into an Excel Sheet. * The key information generated are the following <br> * a) The class Name in First Column <br> * b) The Class Member Fields in second column <br> * c) The Declared Methods in Third column <br> * The Java archive file and the Output File Location * must be passed in as parameters * * @author  Elango Sundaram * @version 1.0 */public class JavaExtract {        /** Creates a new instance of JavaExtract */    public JavaExtract() {    }    /** Name of the input Jar File */    public String jarFile=null;    /** Where the ouput XL should be written */    public String outputFile=null;    /** The XL Document */    HSSFWorkbook workbook = new HSSFWorkbook();    /** The XL Sheet */    HSSFSheet sheet = null;        /* Creates an instance and Initializes the same  */    public static void main(String argv[]){        JavaExtract jE = new JavaExtract();        // Make sure you pass the        jE.jarFile= System.getProperty("JAR_FILE");        jE.outputFile = System.getProperty("OUTPUT_FILE");        // Make sure that jarFile param is available        if(jE.jarFile == null){            System.out.println("The JAR_FILE parameter is not passed as a -DJAR_FILE ..");        }        // Make sure that output file name param is available        if(jE.outputFile == null){            System.out.println("The OUTPUT_FILE parameter is not passed as a -DOUTPUT_FILE ..");        }        // Create the workbook..        jE.createWorkBookAndSheet();        // Unzip and start writing        jE.unZipAndWrite();        // Create headers in the Excel Book        jE.headers();        // Write the XL Document to file..        jE.writeToFile();        System.out.println("Done.." );    }        /**     * Creates an excel workbook & sheet and does column     * formatting     */    public  void createWorkBookAndSheet(){        try{            // Create a New XL Document            workbook = new HSSFWorkbook();            // Make a worksheet in the XL document created            // Give a Name to the worksheet            sheet = workbook.createSheet("Java Class Info");            System.out.println("Work Sheet Created " );            // Set the first three columns with            //  The width is in units of 1/256th of a character width            sheet.setColumnWidth((short)0,(short)10000 );            sheet.setColumnWidth((short)1,(short)10000 );            sheet.setColumnWidth((short)2,(short)10000 );        }catch(Exception e) {            System.out.println("!!FAILURE!! createWorkBookAndSheet() : " + e );        }    }    /**     * This method will unzip the Zip file     * and start writing in to excel..     * The key information gererated are the following     * a) The class Name in First Column <br>     * b) The Class Member Fields in second column <br>     * c) The Declared Methods in Third column <br>     */    public void unZipAndWrite(){        try{            JarFile jF = new JarFile(jarFile);            Enumeration enum = jF.entries();            ZipEntry zN = null;            String  fN = null;            String clazName = null;            String classLoadName = null;            Class clz = null;            short rowNum  = 1;            short cellNum = 0;            while(enum.hasMoreElements()){			try			{                zN = (ZipEntry)enum.nextElement();                fN = zN.getName();                if(fN.indexOf(".class")!= -1){                    // The class name contains /. Butto load class we need the                    // path to be separated by dot. So do the replace                    clazName = fN.replace('/', '.');                    // To Load class, we dont need the extension.. so                    // remove the .class from the classname                    classLoadName = clazName.substring(0,clazName.length() - 6);                    System.out.println("Process The Class --> " + classLoadName );                    // Create a Row                    HSSFRow row = sheet.createRow((short)rowNum);                    HSSFCell cell = row.createCell((short) cellNum);                    // Lets make the cell a string type                    cell.setCellType(HSSFCell.CELL_TYPE_STRING);                                        // Write the Name of the Class in the first                    // column                    cell.setCellValue(classLoadName);                                        // Begin Wringing the Declared classes                    // in the second coloumn                    cell = row.createCell((short) (cellNum+1) );                    // Load the class..					clz  = Class.forName(classLoadName, false , this.getClass().getClassLoader());                    //clz = Class.forName(classLoadName);                                        Field[] fL = clz.getDeclaredFields();                    // Go Over the Fields and get the Names                    for(int i=0; i< fL.length;i++){                        // Keep appending the Name of the Field                        if(i==0){                            cell.setCellValue(fL[i].getName());                        }else {                            cell.setCellValue(cell.getStringCellValue()+ ", "+ fL[i].getName());                        }                    }                                        cell = row.createCell((short) (cellNum+2) );                    // Lets make the cell a string type                    cell.setCellType(HSSFCell.CELL_TYPE_STRING);                                        Method[] method = clz.getDeclaredMethods();                    for(int i=0; i< method.length;i++){                        // Keep appending the Name of the Field                        if(i==0){                            cell.setCellValue(method[i].getName());                        }else {                            cell.setCellValue(cell.getStringCellValue()+ ", "+ method[i].getName());                        }                    }                    // Go to the next line                    rowNum++;                }// close if                				}catch (Exception innerEx){					System.out.println("FAILURE!! unZipAndWrite() .. In proceessing file : " + innerEx );				}            }// close while			        }catch(Exception e) {            System.out.println("!!FAILURE!! unZipAndWrite() : " + e );        }    }            /**     * Writes headers in the output file     */    public  void headers(){        try{            HSSFRow row = sheet.createRow((short)0);            // Set the correct font            HSSFFont font = workbook.createFont();            font.setColor(HSSFFont.COLOR_RED);            font.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD);            // Set the correct Style            HSSFCellStyle cellStyle= workbook.createCellStyle();            cellStyle.setFont(font);            // Set the cell style for Class Name Heading Cell             HSSFCell cell = row.createCell((short) 0);            cell.setCellStyle(cellStyle);            cell.setCellType(HSSFCell.CELL_TYPE_STRING);            cell.setCellValue("Class Name ");            // Set the cell style for Declared Fields Heading Cell             cell = row.createCell((short) 1);            cell.setCellStyle(cellStyle);            cell.setCellType(HSSFCell.CELL_TYPE_STRING);            cell.setCellValue("Declared Fields");             // Set the cell style for Declared Methods Heading Cell             cell = row.createCell((short) 2);            cell.setCellStyle(cellStyle);            cell.setCellType(HSSFCell.CELL_TYPE_STRING);            cell.setCellValue("Declared Methods");        }catch(Exception e) {            System.out.println("!!FAILURE!! headers() : " + e );        }            }    /**     * Write the created excel document in to a file     */    public  void writeToFile(){        try{            System.out.println("Write Output" );            // The Output file is where the xls will be created            FileOutputStream fOut = new FileOutputStream(outputFile);            // Write the XL sheet            workbook.write(fOut);            fOut.flush();            // Done Deal..Close it            fOut.close();            System.out.println("Done Writing" );        }catch(Exception e) {            System.out.println("!!FAILURE!! writeToFile() : " + e );        }            }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色一情一伦一子一伦一区| 8v天堂国产在线一区二区| 亚洲国产sm捆绑调教视频| 亚洲精品一线二线三线| 91猫先生在线| 国产成人精品三级| 日韩电影一区二区三区| 亚洲人成在线观看一区二区| 精品成人a区在线观看| 欧美在线一区二区| 97se亚洲国产综合在线| 国产最新精品免费| 欧美aa在线视频| 亚洲图片欧美色图| 亚洲免费在线电影| 中文字幕av一区二区三区免费看| 日韩精品一区二区三区中文不卡| 色婷婷av一区| 99久久精品免费精品国产| 国产精品综合二区| 美女性感视频久久| 日韩高清不卡一区| 天天操天天干天天综合网| 亚洲一区二区在线免费观看视频 | 日韩免费视频线观看| 欧美在线一区二区三区| 91蝌蚪国产九色| 国v精品久久久网| 极品尤物av久久免费看| 久久国产尿小便嘘嘘尿| 另类小说色综合网站| 美女一区二区三区在线观看| 人人狠狠综合久久亚洲| 日本vs亚洲vs韩国一区三区二区| 亚洲18女电影在线观看| 亚洲一区在线观看视频| 亚洲综合清纯丝袜自拍| 亚洲一区精品在线| 午夜欧美大尺度福利影院在线看| 亚洲va韩国va欧美va| 亚洲国产一二三| 亚洲不卡一区二区三区| 午夜精品福利一区二区三区蜜桃| 亚洲国产精品天堂| 日韩福利视频网| 蜜臀av性久久久久av蜜臀妖精| 日韩av一区二区三区四区| 日本午夜精品一区二区三区电影 | 精品国产自在久精品国产| 精品国产区一区| 久久久五月婷婷| 国产精品丝袜黑色高跟| 亚洲欧洲成人自拍| 亚洲卡通动漫在线| 午夜欧美在线一二页| 精品一区二区三区蜜桃| 国产成人综合网| 99精品欧美一区二区三区小说| 在线观看亚洲专区| 91精品福利在线一区二区三区| 欧美一级在线免费| 欧美国产丝袜视频| 一区二区三区精品视频| 日韩不卡手机在线v区| 国产一区中文字幕| 色婷婷久久久综合中文字幕| 欧美精品少妇一区二区三区| 欧美不卡在线视频| 国产精品国产a| 日韩精品亚洲一区二区三区免费| 国产一区91精品张津瑜| 91在线播放网址| 欧美一级黄色录像| 中文字幕乱码日本亚洲一区二区| 一级日本不卡的影视| 精品在线播放免费| 色婷婷精品久久二区二区蜜臂av | 日韩av午夜在线观看| 精品一区二区三区不卡| 99久久免费精品| 日韩欧美一区在线| 亚洲欧洲日韩女同| 免费欧美日韩国产三级电影| 成人av资源在线观看| 欧美精品aⅴ在线视频| 精品福利在线导航| 日韩一级在线观看| 国产偷v国产偷v亚洲高清| 亚洲制服丝袜av| 粉嫩av一区二区三区粉嫩| 欧美久久高跟鞋激| 中文字幕一区在线观看| 免费高清视频精品| 99精品国产一区二区三区不卡| 日韩午夜在线影院| 一区二区三区四区av| 国产一区二区三区美女| 欧美视频你懂的| 国产精品入口麻豆九色| 人妖欧美一区二区| 欧美综合在线视频| 国产精品国产馆在线真实露脸 | 欧美草草影院在线视频| 一区二区三区四区不卡在线| 高清不卡在线观看av| 日韩一区和二区| 亚洲国产精品久久人人爱 | 色欲综合视频天天天| 国产亚洲一区二区三区在线观看| 天堂资源在线中文精品| 日本高清不卡一区| 中文字幕成人av| 国产精品一区二区视频| 欧美一卡2卡3卡4卡| 亚洲成人自拍网| 色国产综合视频| 亚洲欧美中日韩| 处破女av一区二区| 久久色中文字幕| 久久国产综合精品| 欧美一级二级在线观看| 婷婷成人激情在线网| 欧美日韩中文字幕一区二区| 亚洲精品网站在线观看| eeuss鲁片一区二区三区在线看 | 亚洲成人自拍偷拍| 欧美日韩在线播放| 亚洲一区视频在线观看视频| 一本久道中文字幕精品亚洲嫩| 国产欧美精品国产国产专区| 国产乱码字幕精品高清av| 精品久久久久久久人人人人传媒| 日韩在线一二三区| 欧美一区二区三区色| 手机精品视频在线观看| 欧美久久久久久蜜桃| 天堂在线亚洲视频| 日韩一卡二卡三卡四卡| 久99久精品视频免费观看| 欧美成人精品二区三区99精品| 石原莉奈在线亚洲二区| 欧美一区三区四区| 麻豆视频一区二区| 久久婷婷综合激情| 成人高清伦理免费影院在线观看| 国产精品私人自拍| 99精品视频一区| 亚洲自拍偷拍av| 91精品在线麻豆| 韩国理伦片一区二区三区在线播放| 精品国产乱码久久久久久闺蜜| 国产真实乱子伦精品视频| 国产欧美一区二区精品性| 成人夜色视频网站在线观看| 亚洲视频一区二区在线| 欧美中文字幕亚洲一区二区va在线 | 日韩欧美在线综合网| 国产成人亚洲综合a∨婷婷图片| 欧美经典一区二区| 色激情天天射综合网| 青青草伊人久久| www日韩大片| 99国产精品久| 婷婷综合五月天| 久久久久久久久97黄色工厂| 91美女精品福利| 麻豆精品久久精品色综合| 国产日韩欧美综合一区| 色吧成人激情小说| 免费在线看成人av| 亚洲国产精品二十页| 欧美午夜电影网| 国内精品不卡在线| 一区二区三区四区中文字幕| 日韩视频一区二区三区在线播放| 国产黑丝在线一区二区三区| 夜夜揉揉日日人人青青一国产精品| 91精品国产aⅴ一区二区| 福利电影一区二区三区| 亚洲成人综合在线| 国产精品无圣光一区二区| 欧美视频日韩视频| 成人深夜福利app| 日韩国产欧美视频| 中文字幕在线观看不卡| 日韩三级在线观看| 91麻豆国产香蕉久久精品| 久久99国内精品| 亚洲一区视频在线观看视频| 国产婷婷色一区二区三区| 欧美日韩一区二区电影| 国产乱人伦偷精品视频免下载| 一区二区三区日韩欧美精品| 精品福利一区二区三区 | 国产亚洲欧美在线| 欧美巨大另类极品videosbest| 成人av电影免费在线播放| 麻豆视频观看网址久久| 一级中文字幕一区二区| 国产精品国产精品国产专区不片|