public class sun.net.www.http.HttpCapture
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.www.http.HttpCapture
super_class: java.lang.Object
{
private java.io.File file;
descriptor: Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
private boolean incoming;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private java.io.BufferedWriter out;
descriptor: Ljava/io/BufferedWriter;
flags: (0x0002) ACC_PRIVATE
private static boolean initialized;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static volatile java.util.ArrayList<java.util.regex.Pattern> patterns;
descriptor: Ljava/util/ArrayList;
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
Signature: Ljava/util/ArrayList<Ljava/util/regex/Pattern;>;
private static volatile java.util.ArrayList<java.lang.String> capFiles;
descriptor: Ljava/util/ArrayList;
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
Signature: Ljava/util/ArrayList<Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_0
putstatic sun.net.www.http.HttpCapture.initialized:Z
1: aconst_null
putstatic sun.net.www.http.HttpCapture.patterns:Ljava/util/ArrayList;
2: aconst_null
putstatic sun.net.www.http.HttpCapture.capFiles:Ljava/util/ArrayList;
return
LocalVariableTable:
Start End Slot Name Signature
private static synchronized void init();
descriptor: ()V
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=5, args_size=0
0: iconst_1
putstatic sun.net.www.http.HttpCapture.initialized:Z
1: new sun.net.www.http.HttpCapture$1
dup
invokespecial sun.net.www.http.HttpCapture$1.<init>:()V
2: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 3: aload 0
ifnull 34
aload 0
invokevirtual java.lang.String.isEmpty:()Z
ifne 34
4: new java.io.BufferedReader
dup
new java.io.FileReader
dup
aload 0
invokespecial java.io.FileReader.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 1
start local 1 5: goto 8
end local 1 StackMap locals: java.lang.String
StackMap stack: java.io.FileNotFoundException
6: pop
7: return
start local 1 8: StackMap locals: java.io.BufferedReader
StackMap stack:
aload 1
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 2
start local 2 9: goto 20
10: StackMap locals: java.lang.String
StackMap stack:
aload 2
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 2
11: aload 2
ldc "#"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 19
12: aload 2
ldc ","
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 3
start local 3 13: aload 3
arraylength
iconst_2
if_icmpne 19
14: getstatic sun.net.www.http.HttpCapture.patterns:Ljava/util/ArrayList;
ifnonnull 17
15: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putstatic sun.net.www.http.HttpCapture.patterns:Ljava/util/ArrayList;
16: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
putstatic sun.net.www.http.HttpCapture.capFiles:Ljava/util/ArrayList;
17: StackMap locals: java.lang.String[]
StackMap stack:
getstatic sun.net.www.http.HttpCapture.patterns:Ljava/util/ArrayList;
aload 3
iconst_0
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
18: getstatic sun.net.www.http.HttpCapture.capFiles:Ljava/util/ArrayList;
aload 3
iconst_1
aaload
invokevirtual java.lang.String.trim:()Ljava/lang/String;
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 3 19: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 2
20: StackMap locals:
StackMap stack:
aload 2
ifnonnull 10
end local 2 21: goto 31
StackMap locals: java.lang.String java.io.BufferedReader
StackMap stack: java.io.IOException
22: pop
23: aload 1
invokevirtual java.io.BufferedReader.close:()V
24: goto 34
StackMap locals:
StackMap stack: java.io.IOException
25: pop
goto 34
26: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
27: aload 1
invokevirtual java.io.BufferedReader.close:()V
28: goto 30
StackMap locals: java.lang.String java.io.BufferedReader top top java.lang.Throwable
StackMap stack: java.io.IOException
29: pop
30: StackMap locals:
StackMap stack:
aload 4
athrow
31: StackMap locals: java.lang.String java.io.BufferedReader
StackMap stack:
aload 1
invokevirtual java.io.BufferedReader.close:()V
32: goto 34
StackMap locals:
StackMap stack: java.io.IOException
33: pop
end local 1 34: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
3 35 0 rulesFile Ljava/lang/String;
5 6 1 in Ljava/io/BufferedReader;
8 34 1 in Ljava/io/BufferedReader;
9 21 2 line Ljava/lang/String;
13 19 3 s [Ljava/lang/String;
Exception table:
from to target type
4 5 6 Class java.io.FileNotFoundException
8 21 22 Class java.io.IOException
23 24 25 Class java.io.IOException
8 23 26 any
27 28 29 Class java.io.IOException
31 32 33 Class java.io.IOException
private static synchronized boolean isInitialized();
descriptor: ()Z
flags: (0x002a) ACC_PRIVATE, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.net.www.http.HttpCapture.initialized:Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.io.File, java.net.URL);
descriptor: (Ljava/io/File;Ljava/net/URL;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield sun.net.www.http.HttpCapture.file:Ljava/io/File;
2: aload 0
iconst_1
putfield sun.net.www.http.HttpCapture.incoming:Z
3: aload 0
aconst_null
putfield sun.net.www.http.HttpCapture.out:Ljava/io/BufferedWriter;
4: aload 0
aload 1
putfield sun.net.www.http.HttpCapture.file:Ljava/io/File;
5: aload 0
new java.io.BufferedWriter
dup
new java.io.FileWriter
dup
aload 0
getfield sun.net.www.http.HttpCapture.file:Ljava/io/File;
iconst_1
invokespecial java.io.FileWriter.<init>:(Ljava/io/File;Z)V
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
putfield sun.net.www.http.HttpCapture.out:Ljava/io/BufferedWriter;
6: aload 0
getfield sun.net.www.http.HttpCapture.out:Ljava/io/BufferedWriter;
new java.lang.StringBuilder
dup
ldc "URL: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.BufferedWriter.write:(Ljava/lang/String;)V
7: goto 10
StackMap locals: sun.net.www.http.HttpCapture java.io.File java.net.URL
StackMap stack: java.io.IOException
8: astore 3
start local 3 9: ldc Lsun/net/www/http/HttpCapture;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic sun.util.logging.PlatformLogger.getLogger:(Ljava/lang/String;)Lsun/util/logging/PlatformLogger;
aconst_null
aload 3
invokevirtual sun.util.logging.PlatformLogger.severe:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 3 10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/net/www/http/HttpCapture;
0 11 1 f Ljava/io/File;
0 11 2 url Ljava/net/URL;
9 10 3 ex Ljava/io/IOException;
Exception table:
from to target type
5 7 8 Class java.io.IOException
MethodParameters:
Name Flags
f
url
public synchronized void sent(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.www.http.HttpCapture.incoming:Z
ifeq 4
1: aload 0
getfield sun.net.www.http.HttpCapture.out:Ljava/io/BufferedWriter;
ldc "\n------>\n"
invokevirtual java.io.BufferedWriter.write:(Ljava/lang/String;)V
2: aload 0
iconst_0
putfield sun.net.www.http.HttpCapture.incoming:Z
3: aload 0
getfield sun.net.www.http.HttpCapture.out:Ljava/io/BufferedWriter;
invokevirtual java.io.BufferedWriter.flush:()V
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.HttpCapture.out:Ljava/io/BufferedWriter;
iload 1
invokevirtual java.io.BufferedWriter.write:(I)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/www/http/HttpCapture;
0 6 1 c I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
c
public synchronized void received(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.www.http.HttpCapture.incoming:Z
ifne 4
1: aload 0
getfield sun.net.www.http.HttpCapture.out:Ljava/io/BufferedWriter;
ldc "\n<------\n"
invokevirtual java.io.BufferedWriter.write:(Ljava/lang/String;)V
2: aload 0
iconst_1
putfield sun.net.www.http.HttpCapture.incoming:Z
3: aload 0
getfield sun.net.www.http.HttpCapture.out:Ljava/io/BufferedWriter;
invokevirtual java.io.BufferedWriter.flush:()V
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.HttpCapture.out:Ljava/io/BufferedWriter;
iload 1
invokevirtual java.io.BufferedWriter.write:(I)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/www/http/HttpCapture;
0 6 1 c I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
c
public synchronized void flush();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.HttpCapture.out:Ljava/io/BufferedWriter;
invokevirtual java.io.BufferedWriter.flush:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/http/HttpCapture;
Exceptions:
throws java.io.IOException
public static sun.net.www.http.HttpCapture getCapture(java.net.URL);
descriptor: (Ljava/net/URL;)Lsun/net/www/http/HttpCapture;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=8, args_size=1
start local 0 0: invokestatic sun.net.www.http.HttpCapture.isInitialized:()Z
ifne 2
1: invokestatic sun.net.www.http.HttpCapture.init:()V
2: StackMap locals:
StackMap stack:
getstatic sun.net.www.http.HttpCapture.patterns:Ljava/util/ArrayList;
ifnull 3
getstatic sun.net.www.http.HttpCapture.patterns:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.isEmpty:()Z
ifeq 4
3: StackMap locals:
StackMap stack:
aconst_null
areturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.net.URL.toString:()Ljava/lang/String;
astore 1
start local 1 5: iconst_0
istore 2
start local 2 6: goto 19
7: StackMap locals: java.lang.String int
StackMap stack:
getstatic sun.net.www.http.HttpCapture.patterns:Ljava/util/ArrayList;
iload 2
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast java.util.regex.Pattern
astore 3
start local 3 8: aload 3
aload 1
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 18
9: getstatic sun.net.www.http.HttpCapture.capFiles:Ljava/util/ArrayList;
iload 2
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 10: aload 4
ldc "%d"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iflt 16
11: new java.util.Random
dup
invokespecial java.util.Random.<init>:()V
astore 6
start local 6 12: StackMap locals: java.net.URL java.lang.String int java.util.regex.Pattern java.lang.String top java.util.Random
StackMap stack:
aload 4
ldc "%d"
aload 6
invokevirtual java.util.Random.nextInt:()I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 7
start local 7 13: new java.io.File
dup
aload 7
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 5
end local 7 start local 5 14: aload 5
invokevirtual java.io.File.exists:()Z
ifne 12
end local 6 15: goto 17
end local 5 16: StackMap locals: java.net.URL java.lang.String int java.util.regex.Pattern java.lang.String
StackMap stack:
new java.io.File
dup
aload 4
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 5
start local 5 17: StackMap locals: java.io.File
StackMap stack:
new sun.net.www.http.HttpCapture
dup
aload 5
aload 0
invokespecial sun.net.www.http.HttpCapture.<init>:(Ljava/io/File;Ljava/net/URL;)V
areturn
end local 5 end local 4 end local 3 18: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
19: iload 2
getstatic sun.net.www.http.HttpCapture.patterns:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
if_icmplt 7
end local 2 20: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 url Ljava/net/URL;
5 21 1 s Ljava/lang/String;
6 20 2 i I
8 18 3 p Ljava/util/regex/Pattern;
10 18 4 f Ljava/lang/String;
14 16 5 fi Ljava/io/File;
17 18 5 fi Ljava/io/File;
12 15 6 rand Ljava/util/Random;
13 14 7 f2 Ljava/lang/String;
MethodParameters:
Name Flags
url
}
SourceFile: "HttpCapture.java"
NestMembers:
sun.net.www.http.HttpCapture$1
InnerClasses:
sun.net.www.http.HttpCapture$1