Skip to content

Instantly share code, notes, and snippets.

@codelion
Created April 21, 2015 08:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codelion/1803887ad280c2e996d3 to your computer and use it in GitHub Desktop.
Save codelion/1803887ad280c2e996d3 to your computer and use it in GitHub Desktop.
public void copy() throws java.io.FileNotFoundException;
Code:
0: new #22 // class java/io/FileInputStream
3: dup
4: ldc #29 // String in.txt
6: invokespecial #23 // Method java/io/FileInputStream."<init>":(Ljava/lang/String;)V
9: astore_1
10: new #30 // class java/io/FileOutputStream
13: dup
14: ldc #31 // String out.txt
16: invokespecial #32 // Method java/io/FileOutputStream."<init>":(Ljava/lang/String;)V
19: astore_2
20: sipush 1024
23: newarray byte
25: astore_3
26: iconst_m1
27: aload_1
28: aload_3
29: invokevirtual #33 // Method java/io/InputStream.read:([B)I
32: if_icmpeq 43
35: aload_2
36: aload_3
37: invokevirtual #34 // Method java/io/OutputStream.write:([B)V
40: goto 26
43: aload_1
44: invokevirtual #35 // Method java/io/InputStream.close:()V
47: aload_2
48: invokevirtual #36 // Method java/io/OutputStream.close:()V
51: goto 97
54: astore 4
56: ldc #38 // class wox/serial/Easy
58: invokevirtual #39 // Method java/lang/Class.getName:()Ljava/lang/String;
61: invokestatic #40 // Method java/util/logging/Logger.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
64: getstatic #41 // Field java/util/logging/Level.SEVERE:Ljava/util/logging/Level;
67: aconst_null
68: aload 4
70: invokevirtual #42 // Method java/util/logging/Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
73: aload_1
74: invokevirtual #35 // Method java/io/InputStream.close:()V
77: aload_2
78: invokevirtual #36 // Method java/io/OutputStream.close:()V
81: goto 97
84: astore 5
86: aload_1
87: invokevirtual #35 // Method java/io/InputStream.close:()V
90: aload_2
91: invokevirtual #36 // Method java/io/OutputStream.close:()V
94: aload 5
96: athrow
97: goto 119
100: astore 4
102: ldc #38 // class wox/serial/Easy
104: invokevirtual #39 // Method java/lang/Class.getName:()Ljava/lang/String;
107: invokestatic #40 // Method java/util/logging/Logger.getLogger:(Ljava/lang/String;)Ljava/util/logging/Logger;
110: getstatic #41 // Field java/util/logging/Level.SEVERE:Ljava/util/logging/Level;
113: aconst_null
114: aload 4
116: invokevirtual #42 // Method java/util/logging/Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Throwable;)V
119: return
Exception table:
from to target type
26 43 54 Class java/io/IOException
26 43 84 any
54 73 84 any
84 86 84 any
26 97 100 Class java/io/IOException
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment