package com.qefee.jcfs;

/**
 * Created by tongjin on 2016/11/13.
 */
public class App {
    public static void main(String[] args) {
        System.out.println("hello world");
    }
}

@@ -22,11 +22,38 @@
 s;%0A%0A
-/**
+import java.io.*;%0A%0A/**%0A * App.
 %0A * 
@@ -167,39 +167,1654 @@
    S
-ystem.out.println(%22hello world%22
+tring filePath = %22/Users/tongjin/mydir/tmp/jcfs/App.class%22;%0A        File file = new File(filePath);%0A%0A        if (!file.exists()) %7B%0A            echo(String.format(%22file not exists, path = %25s%22, filePath));%0A            return;%0A        %7D%0A%0A        if (!file.isFile()) %7B%0A            echo(String.format(%22%25s is not a file%22, filePath));%0A            return;%0A        %7D%0A%0A        FileInputStream fis = null;%0A        try %7B%0A            fis = new FileInputStream(file);%0A            DataInputStream dis = new DataInputStream(fis);%0A%0A            int magicNumber = dis.readInt();%0A%0A            String magicNumberStr = Integer.toHexString(magicNumber);%0A            echo(String.format(%22magic number = %25s%22, magicNumberStr));%0A%0A            short minorVersion = dis.readShort();%0A            echo(String.format(%22minorVersion = %25d%22, minorVersion));%0A%0A            short majorVersion = dis.readShort();%0A            echo(String.format(%22majorVersion = %25d%22, majorVersion));%0A%0A            short constantPollCount = dis.readShort();%0A            echo(String.format(%22constantPollCount = %25d%22, constantPollCount));%0A%0A//            for (int i = 0; i %3C constantPollCount; i++) %7B%0A//                byte tag = dis.readByte();%0A//            %7D%0A%0A            byte tag = dis.readByte();%0A%0A            echo(String.format(%22tag = %25d%22, tag));%0A%0A        %7D catch (FileNotFoundException e) %7B%0A            e.printStackTrace();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A%0A    %7D%0A%0A    public static void echo(String msg) %7B%0A        System.out.println(msg);%0A    %7D%0A%0A    public static void echo(String msg, Exception e) %7B%0A        System.out.println(msg);%0A        e.printStackTrace(
 );%0A 

add code