public class sun.net.www.http.KeepAliveStream extends sun.net.www.MeteredStream implements sun.net.www.http.Hurryable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.www.http.KeepAliveStream
super_class: sun.net.www.MeteredStream
{
sun.net.www.http.HttpClient hc;
descriptor: Lsun/net/www/http/HttpClient;
flags: (0x0000)
boolean hurried;
descriptor: Z
flags: (0x0000)
protected boolean queuedForCleanup;
descriptor: Z
flags: (0x0004) ACC_PROTECTED
private static final sun.net.www.http.KeepAliveStreamCleaner queue;
descriptor: Lsun/net/www/http/KeepAliveStreamCleaner;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static java.lang.Thread cleanerThread;
descriptor: Ljava/lang/Thread;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new sun.net.www.http.KeepAliveStreamCleaner
dup
invokespecial sun.net.www.http.KeepAliveStreamCleaner.<init>:()V
putstatic sun.net.www.http.KeepAliveStream.queue:Lsun/net/www/http/KeepAliveStreamCleaner;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.io.InputStream, sun.net.ProgressSource, long, sun.net.www.http.HttpClient);
descriptor: (Ljava/io/InputStream;Lsun/net/ProgressSource;JLsun/net/www/http/HttpClient;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 5 0: aload 0
aload 1
aload 2
lload 3
invokespecial sun.net.www.MeteredStream.<init>:(Ljava/io/InputStream;Lsun/net/ProgressSource;J)V
1: aload 0
iconst_0
putfield sun.net.www.http.KeepAliveStream.queuedForCleanup:Z
2: aload 0
aload 5
putfield sun.net.www.http.KeepAliveStream.hc:Lsun/net/www/http/HttpClient;
3: return
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/www/http/KeepAliveStream;
0 4 1 is Ljava/io/InputStream;
0 4 2 pi Lsun/net/ProgressSource;
0 4 3 expected J
0 4 5 hc Lsun/net/www/http/HttpClient;
MethodParameters:
Name Flags
is
pi
expected
hc
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.KeepAliveStream.closed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.KeepAliveStream.queuedForCleanup:Z
ifeq 4
3: return
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.KeepAliveStream.expected:J
aload 0
getfield sun.net.www.http.KeepAliveStream.count:J
lcmp
ifle 15
5: aload 0
getfield sun.net.www.http.KeepAliveStream.expected:J
aload 0
getfield sun.net.www.http.KeepAliveStream.count:J
lsub
lstore 1
start local 1 6: lload 1
aload 0
invokevirtual sun.net.www.http.KeepAliveStream.available:()I
i2l
lcmp
ifgt 11
7: StackMap locals: long
StackMap stack:
aload 0
getfield sun.net.www.http.KeepAliveStream.expected:J
aload 0
getfield sun.net.www.http.KeepAliveStream.count:J
lsub
dup2
lstore 1
lconst_0
lcmp
ifle 15
8: aload 0
lload 1
aload 0
invokevirtual sun.net.www.http.KeepAliveStream.available:()I
i2l
invokestatic java.lang.Math.min:(JJ)J
invokevirtual sun.net.www.http.KeepAliveStream.skip:(J)J
lconst_0
9: lcmp
ifgt 7
10: goto 15
StackMap locals:
StackMap stack:
11: aload 0
getfield sun.net.www.http.KeepAliveStream.expected:J
getstatic sun.net.www.http.KeepAliveStreamCleaner.MAX_DATA_REMAINING:I
i2l
lcmp
ifgt 14
aload 0
getfield sun.net.www.http.KeepAliveStream.hurried:Z
ifne 14
12: new sun.net.www.http.KeepAliveCleanerEntry
dup
aload 0
aload 0
getfield sun.net.www.http.KeepAliveStream.hc:Lsun/net/www/http/HttpClient;
invokespecial sun.net.www.http.KeepAliveCleanerEntry.<init>:(Lsun/net/www/http/KeepAliveStream;Lsun/net/www/http/HttpClient;)V
invokestatic sun.net.www.http.KeepAliveStream.queueForCleanup:(Lsun/net/www/http/KeepAliveCleanerEntry;)V
13: goto 15
14: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.KeepAliveStream.hc:Lsun/net/www/http/HttpClient;
invokevirtual sun.net.www.http.HttpClient.closeServer:()V
end local 1 15: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.KeepAliveStream.closed:Z
ifne 26
aload 0
getfield sun.net.www.http.KeepAliveStream.hurried:Z
ifne 26
aload 0
getfield sun.net.www.http.KeepAliveStream.queuedForCleanup:Z
ifne 26
16: aload 0
getfield sun.net.www.http.KeepAliveStream.hc:Lsun/net/www/http/HttpClient;
invokevirtual sun.net.www.http.HttpClient.finished:()V
17: goto 26
StackMap locals:
StackMap stack: java.lang.Throwable
18: astore 3
19: aload 0
getfield sun.net.www.http.KeepAliveStream.pi:Lsun/net/ProgressSource;
ifnull 21
20: aload 0
getfield sun.net.www.http.KeepAliveStream.pi:Lsun/net/ProgressSource;
invokevirtual sun.net.ProgressSource.finishTracking:()V
21: StackMap locals: sun.net.www.http.KeepAliveStream top top java.lang.Throwable
StackMap stack:
aload 0
getfield sun.net.www.http.KeepAliveStream.queuedForCleanup:Z
ifne 25
22: aload 0
aconst_null
putfield sun.net.www.http.KeepAliveStream.in:Ljava/io/InputStream;
23: aload 0
aconst_null
putfield sun.net.www.http.KeepAliveStream.hc:Lsun/net/www/http/HttpClient;
24: aload 0
iconst_1
putfield sun.net.www.http.KeepAliveStream.closed:Z
25: StackMap locals:
StackMap stack:
aload 3
athrow
26: StackMap locals: sun.net.www.http.KeepAliveStream
StackMap stack:
aload 0
getfield sun.net.www.http.KeepAliveStream.pi:Lsun/net/ProgressSource;
ifnull 28
27: aload 0
getfield sun.net.www.http.KeepAliveStream.pi:Lsun/net/ProgressSource;
invokevirtual sun.net.ProgressSource.finishTracking:()V
28: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.KeepAliveStream.queuedForCleanup:Z
ifne 32
29: aload 0
aconst_null
putfield sun.net.www.http.KeepAliveStream.in:Ljava/io/InputStream;
30: aload 0
aconst_null
putfield sun.net.www.http.KeepAliveStream.hc:Lsun/net/www/http/HttpClient;
31: aload 0
iconst_1
putfield sun.net.www.http.KeepAliveStream.closed:Z
32: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 33 0 this Lsun/net/www/http/KeepAliveStream;
6 15 1 nskip J
Exception table:
from to target type
4 18 18 any
Exceptions:
throws java.io.IOException
public boolean markSupported();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/http/KeepAliveStream;
public void mark(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/http/KeepAliveStream;
0 1 1 limit I
MethodParameters:
Name Flags
limit
public void reset();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.IOException
dup
ldc "mark/reset not supported"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/http/KeepAliveStream;
Exceptions:
throws java.io.IOException
public synchronized boolean hurry();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.KeepAliveStream.closed:Z
ifne 1
aload 0
getfield sun.net.www.http.KeepAliveStream.count:J
aload 0
getfield sun.net.www.http.KeepAliveStream.expected:J
lcmp
iflt 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.KeepAliveStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.available:()I
i2l
aload 0
getfield sun.net.www.http.KeepAliveStream.expected:J
aload 0
getfield sun.net.www.http.KeepAliveStream.count:J
lsub
lcmp
ifge 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.KeepAliveStream.expected:J
aload 0
getfield sun.net.www.http.KeepAliveStream.count:J
lsub
l2i
istore 1
start local 1 5: iload 1
newarray 8
astore 2
start local 2 6: new java.io.DataInputStream
dup
aload 0
getfield sun.net.www.http.KeepAliveStream.in:Ljava/io/InputStream;
invokespecial java.io.DataInputStream.<init>:(Ljava/io/InputStream;)V
astore 3
start local 3 7: aload 3
aload 2
invokevirtual java.io.DataInputStream.readFully:([B)V
8: aload 0
new java.io.ByteArrayInputStream
dup
aload 2
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
putfield sun.net.www.http.KeepAliveStream.in:Ljava/io/InputStream;
9: aload 0
iconst_1
putfield sun.net.www.http.KeepAliveStream.hurried:Z
10: iconst_1
ireturn
end local 3 end local 2 end local 1 11: StackMap locals:
StackMap stack: java.io.IOException
pop
12: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/net/www/http/KeepAliveStream;
5 11 1 size I
6 11 2 buf [B
7 11 3 dis Ljava/io/DataInputStream;
Exception table:
from to target type
0 1 11 Class java.io.IOException
2 3 11 Class java.io.IOException
4 10 11 Class java.io.IOException
private static void queueForCleanup(sun.net.www.http.KeepAliveCleanerEntry);
descriptor: (Lsun/net/www/http/KeepAliveCleanerEntry;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: getstatic sun.net.www.http.KeepAliveStream.queue:Lsun/net/www/http/KeepAliveStreamCleaner;
dup
astore 1
monitorenter
1: aload 0
invokevirtual sun.net.www.http.KeepAliveCleanerEntry.getQueuedForCleanup:()Z
ifne 8
2: getstatic sun.net.www.http.KeepAliveStream.queue:Lsun/net/www/http/KeepAliveStreamCleaner;
aload 0
invokevirtual sun.net.www.http.KeepAliveStreamCleaner.offer:(Lsun/net/www/http/KeepAliveCleanerEntry;)Z
ifne 6
3: aload 0
invokevirtual sun.net.www.http.KeepAliveCleanerEntry.getHttpClient:()Lsun/net/www/http/HttpClient;
invokevirtual sun.net.www.http.HttpClient.closeServer:()V
4: aload 1
monitorexit
5: return
6: StackMap locals: sun.net.www.http.KeepAliveStreamCleaner
StackMap stack:
aload 0
invokevirtual sun.net.www.http.KeepAliveCleanerEntry.setQueuedForCleanup:()V
7: getstatic sun.net.www.http.KeepAliveStream.queue:Lsun/net/www/http/KeepAliveStreamCleaner;
invokevirtual java.lang.Object.notifyAll:()V
8: StackMap locals:
StackMap stack:
getstatic sun.net.www.http.KeepAliveStream.cleanerThread:Ljava/lang/Thread;
ifnonnull 9
iconst_1
goto 10
StackMap locals:
StackMap stack:
9: iconst_0
StackMap locals:
StackMap stack: int
10: istore 2
start local 2 11: iload 2
ifne 14
12: getstatic sun.net.www.http.KeepAliveStream.cleanerThread:Ljava/lang/Thread;
invokevirtual java.lang.Thread.isAlive:()Z
ifne 14
13: iconst_1
istore 2
14: StackMap locals: int
StackMap stack:
iload 2
ifeq 17
15: new sun.net.www.http.KeepAliveStream$1
dup
invokespecial sun.net.www.http.KeepAliveStream$1.<init>:()V
16: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
end local 2 17: StackMap locals:
StackMap stack:
aload 1
monitorexit
18: goto 21
StackMap locals:
StackMap stack: java.lang.Throwable
19: aload 1
monitorexit
20: athrow
21: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 kace Lsun/net/www/http/KeepAliveCleanerEntry;
11 17 2 startCleanupThread Z
Exception table:
from to target type
1 5 19 any
6 18 19 any
19 20 19 any
MethodParameters:
Name Flags
kace
protected long remainingToRead();
descriptor: ()J
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.KeepAliveStream.expected:J
aload 0
getfield sun.net.www.http.KeepAliveStream.count:J
lsub
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/http/KeepAliveStream;
protected void setClosed();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield sun.net.www.http.KeepAliveStream.in:Ljava/io/InputStream;
1: aload 0
aconst_null
putfield sun.net.www.http.KeepAliveStream.hc:Lsun/net/www/http/HttpClient;
2: aload 0
iconst_1
putfield sun.net.www.http.KeepAliveStream.closed:Z
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/www/http/KeepAliveStream;
}
SourceFile: "KeepAliveStream.java"
NestMembers:
sun.net.www.http.KeepAliveStream$1
InnerClasses:
sun.net.www.http.KeepAliveStream$1