public class sun.net.www.http.ChunkedInputStream extends java.io.InputStream 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.ChunkedInputStream
super_class: java.io.InputStream
{
private java.io.InputStream in;
descriptor: Ljava/io/InputStream;
flags: (0x0002) ACC_PRIVATE
private sun.net.www.http.HttpClient hc;
descriptor: Lsun/net/www/http/HttpClient;
flags: (0x0002) ACC_PRIVATE
private sun.net.www.MessageHeader ;
descriptor: Lsun/net/www/MessageHeader;
flags: (0x0002) ACC_PRIVATE
private int chunkSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int chunkRead;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] chunkData;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int chunkPos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int chunkCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] rawData;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int rawPos;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int rawCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean error;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private static final int ;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2050
static final int ;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 1
static final int STATE_READING_CHUNK;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 2
static final int STATE_AWAITING_CHUNK_EOL;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 3
static final int STATE_AWAITING_TRAILERS;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4
static final int STATE_DONE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 5
private int state;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private void ensureOpen();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.ChunkedInputStream.closed:Z
ifeq 2
1: new java.io.IOException
dup
ldc "stream is closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/http/ChunkedInputStream;
Exceptions:
throws java.io.IOException
private void ensureRawAvailable(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
iload 1
iadd
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
arraylength
if_icmple 12
1: aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
isub
istore 2
start local 2 2: iload 2
iload 1
iadd
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
arraylength
if_icmple 8
3: iload 2
iload 1
iadd
newarray 8
astore 3
start local 3 4: iload 2
ifle 6
5: aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
aload 3
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
6: StackMap locals: int byte[]
StackMap stack:
aload 0
aload 3
putfield sun.net.www.http.ChunkedInputStream.rawData:[B
end local 3 7: goto 10
8: StackMap locals:
StackMap stack:
iload 2
ifle 10
9: aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
iconst_0
iload 2
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
10: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield sun.net.www.http.ChunkedInputStream.rawCount:I
11: aload 0
iconst_0
putfield sun.net.www.http.ChunkedInputStream.rawPos:I
end local 2 12: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/net/www/http/ChunkedInputStream;
0 13 1 size I
2 12 2 used I
4 7 3 tmp [B
MethodParameters:
Name Flags
size
private void closeUnderlying();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.ChunkedInputStream.in:Ljava/io/InputStream;
ifnonnull 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.error:Z
ifne 5
aload 0
getfield sun.net.www.http.ChunkedInputStream.state:I
iconst_5
if_icmpne 5
3: aload 0
getfield sun.net.www.http.ChunkedInputStream.hc:Lsun/net/www/http/HttpClient;
invokevirtual sun.net.www.http.HttpClient.finished:()V
4: goto 7
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.http.ChunkedInputStream.hurry:()Z
ifne 7
6: aload 0
getfield sun.net.www.http.ChunkedInputStream.hc:Lsun/net/www/http/HttpClient;
invokevirtual sun.net.www.http.HttpClient.closeServer:()V
7: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield sun.net.www.http.ChunkedInputStream.in:Ljava/io/InputStream;
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/www/http/ChunkedInputStream;
Exceptions:
throws java.io.IOException
private int fastRead(byte[], int, int);
descriptor: ([BII)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkSize:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkRead:I
isub
istore 4
start local 4 1: iload 4
iload 3
if_icmpge 2
iload 4
goto 3
StackMap locals: int
StackMap stack:
2: iload 3
StackMap locals:
StackMap stack: int
3: istore 5
start local 5 4: iload 5
ifle 17
5: aload 0
getfield sun.net.www.http.ChunkedInputStream.in:Ljava/io/InputStream;
aload 1
iload 2
iload 5
invokevirtual java.io.InputStream.read:([BII)I
istore 6
start local 6 6: goto 10
end local 6 StackMap locals: sun.net.www.http.ChunkedInputStream byte[] int int int int
StackMap stack: java.io.IOException
7: astore 7
start local 7 8: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
9: aload 7
athrow
end local 7 start local 6 10: StackMap locals: int
StackMap stack:
iload 6
ifle 15
11: aload 0
dup
getfield sun.net.www.http.ChunkedInputStream.chunkRead:I
iload 6
iadd
putfield sun.net.www.http.ChunkedInputStream.chunkRead:I
12: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkRead:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkSize:I
if_icmplt 14
13: aload 0
iconst_3
putfield sun.net.www.http.ChunkedInputStream.state:I
14: StackMap locals:
StackMap stack:
iload 6
ireturn
15: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
16: new java.io.IOException
dup
ldc "Premature EOF"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 6 17: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/net/www/http/ChunkedInputStream;
0 18 1 b [B
0 18 2 off I
0 18 3 len I
1 18 4 remaining I
4 18 5 cnt I
6 7 6 nread I
10 17 6 nread I
8 10 7 e Ljava/io/IOException;
Exception table:
from to target type
5 6 7 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
private void processRaw();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=8, args_size=1
start local 0 0: goto 94
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.state:I
tableswitch { // 1 - 4
1: 2
2: 34
3: 55
4: 66
default: 94
}
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
istore 1
start local 1 3: goto 10
4: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
iload 1
baload
bipush 10
if_icmpne 6
5: goto 11
6: StackMap locals:
StackMap stack:
iinc 1 1
7: iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
isub
sipush 2050
if_icmplt 10
8: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
9: new java.io.IOException
dup
ldc "Chunk header too long"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
if_icmplt 4
11: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
if_icmplt 13
12: return
13: StackMap locals:
StackMap stack:
new java.lang.String
dup
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
isub
iconst_1
iadd
14: getstatic sun.nio.cs.US_ASCII.INSTANCE:Lsun/nio/cs/US_ASCII;
15: invokespecial java.lang.String.<init>:([BIILjava/nio/charset/Charset;)V
astore 3
start local 3 16: iconst_0
istore 2
start local 2 17: goto 21
18: StackMap locals: int java.lang.String
StackMap stack:
aload 3
iload 2
invokevirtual java.lang.String.charAt:(I)C
bipush 16
invokestatic java.lang.Character.digit:(CI)I
iconst_m1
if_icmpne 20
19: goto 22
20: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
21: iload 2
aload 3
invokevirtual java.lang.String.length:()I
if_icmplt 18
22: StackMap locals:
StackMap stack:
aload 0
aload 3
iconst_0
iload 2
bipush 16
invokestatic java.lang.Integer.parseInt:(Ljava/lang/CharSequence;III)I
putfield sun.net.www.http.ChunkedInputStream.chunkSize:I
23: goto 27
StackMap locals:
StackMap stack: java.lang.NumberFormatException
24: pop
25: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
26: new java.io.IOException
dup
ldc "Bogus chunk size"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
27: StackMap locals:
StackMap stack:
aload 0
iload 1
iconst_1
iadd
putfield sun.net.www.http.ChunkedInputStream.rawPos:I
28: aload 0
iconst_0
putfield sun.net.www.http.ChunkedInputStream.chunkRead:I
29: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkSize:I
ifle 32
30: aload 0
iconst_2
putfield sun.net.www.http.ChunkedInputStream.state:I
31: goto 94
32: StackMap locals:
StackMap stack:
aload 0
iconst_4
putfield sun.net.www.http.ChunkedInputStream.state:I
33: goto 94
end local 3 end local 2 end local 1 34: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
if_icmplt 36
35: return
36: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkSize:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkRead:I
isub
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
isub
invokestatic java.lang.Math.min:(II)I
istore 4
start local 4 37: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkData:[B
arraylength
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkCount:I
iload 4
iadd
if_icmpge 47
38: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkCount:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkPos:I
isub
istore 5
start local 5 39: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkData:[B
arraylength
iload 5
iload 4
iadd
if_icmpge 44
40: iload 5
iload 4
iadd
newarray 8
astore 6
start local 6 41: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkPos:I
aload 6
iconst_0
iload 5
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
42: aload 0
aload 6
putfield sun.net.www.http.ChunkedInputStream.chunkData:[B
end local 6 43: goto 45
44: StackMap locals: sun.net.www.http.ChunkedInputStream top top top int int
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkPos:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkData:[B
iconst_0
iload 5
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
45: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.net.www.http.ChunkedInputStream.chunkPos:I
46: aload 0
iload 5
putfield sun.net.www.http.ChunkedInputStream.chunkCount:I
end local 5 47: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkCount:I
iload 4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
48: aload 0
dup
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
iload 4
iadd
putfield sun.net.www.http.ChunkedInputStream.rawPos:I
49: aload 0
dup
getfield sun.net.www.http.ChunkedInputStream.chunkCount:I
iload 4
iadd
putfield sun.net.www.http.ChunkedInputStream.chunkCount:I
50: aload 0
dup
getfield sun.net.www.http.ChunkedInputStream.chunkRead:I
iload 4
iadd
putfield sun.net.www.http.ChunkedInputStream.chunkRead:I
51: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkSize:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkRead:I
isub
ifgt 54
52: aload 0
iconst_3
putfield sun.net.www.http.ChunkedInputStream.state:I
53: goto 94
54: StackMap locals:
StackMap stack:
return
end local 4 55: StackMap locals: sun.net.www.http.ChunkedInputStream
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
iconst_1
iadd
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
if_icmplt 57
56: return
57: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
baload
bipush 13
if_icmpeq 60
58: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
59: new java.io.IOException
dup
ldc "missing CR"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
60: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
iconst_1
iadd
baload
bipush 10
if_icmpeq 63
61: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
62: new java.io.IOException
dup
ldc "missing LF"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
63: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
iconst_2
iadd
putfield sun.net.www.http.ChunkedInputStream.rawPos:I
64: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.state:I
65: goto 94
66: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
istore 1
start local 1 67: goto 71
68: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
iload 1
baload
bipush 10
if_icmpne 70
69: goto 72
70: StackMap locals:
StackMap stack:
iinc 1 1
71: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
if_icmplt 68
72: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
if_icmplt 74
73: return
74: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
if_icmpne 77
75: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
76: new java.io.IOException
dup
ldc "LF should be proceeded by CR"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
77: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
iload 1
iconst_1
isub
baload
bipush 13
if_icmpeq 80
78: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
79: new java.io.IOException
dup
ldc "LF should be proceeded by CR"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
80: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
iconst_1
iadd
if_icmpne 84
81: aload 0
iconst_5
putfield sun.net.www.http.ChunkedInputStream.state:I
82: aload 0
invokevirtual sun.net.www.http.ChunkedInputStream.closeUnderlying:()V
83: return
84: StackMap locals:
StackMap stack:
new java.lang.String
dup
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
isub
85: getstatic sun.nio.cs.US_ASCII.INSTANCE:Lsun/nio/cs/US_ASCII;
86: invokespecial java.lang.String.<init>:([BIILjava/nio/charset/Charset;)V
astore 5
start local 5 87: aload 5
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 88: iload 2
iconst_m1
if_icmpne 90
89: new java.io.IOException
dup
ldc "Malformed tailer - format should be key:value"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
90: StackMap locals: sun.net.www.http.ChunkedInputStream int int top top java.lang.String
StackMap stack:
aload 5
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 6
start local 6 91: aload 5
iload 2
iconst_1
iadd
aload 5
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 7
start local 7 92: aload 0
getfield sun.net.www.http.ChunkedInputStream.responses:Lsun/net/www/MessageHeader;
aload 6
aload 7
invokevirtual sun.net.www.MessageHeader.add:(Ljava/lang/String;Ljava/lang/String;)V
93: aload 0
iload 1
iconst_1
iadd
putfield sun.net.www.http.ChunkedInputStream.rawPos:I
end local 7 end local 6 end local 5 end local 2 end local 1 94: StackMap locals: sun.net.www.http.ChunkedInputStream
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.state:I
iconst_5
if_icmpne 1
95: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 96 0 this Lsun/net/www/http/ChunkedInputStream;
3 34 1 pos I
67 94 1 pos I
17 34 2 i I
88 94 2 i I
16 34 3 header Ljava/lang/String;
37 55 4 copyLen I
39 47 5 cnt I
41 43 6 tmp [B
87 94 5 trailer Ljava/lang/String;
91 94 6 key Ljava/lang/String;
92 94 7 value Ljava/lang/String;
Exception table:
from to target type
22 23 24 Class java.lang.NumberFormatException
Exceptions:
throws java.io.IOException
private int readAheadNonBlocking();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.ChunkedInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.available:()I
istore 1
start local 1 1: iload 1
ifle 13
2: aload 0
iload 1
invokevirtual sun.net.www.http.ChunkedInputStream.ensureRawAvailable:(I)V
3: aload 0
getfield sun.net.www.http.ChunkedInputStream.in:Ljava/io/InputStream;
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
iload 1
invokevirtual java.io.InputStream.read:([BII)I
istore 2
start local 2 4: goto 8
end local 2 StackMap locals: sun.net.www.http.ChunkedInputStream int
StackMap stack: java.io.IOException
5: astore 3
start local 3 6: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
7: aload 3
athrow
end local 3 start local 2 8: StackMap locals: int
StackMap stack:
iload 2
ifge 11
9: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
10: iconst_m1
ireturn
11: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
iload 2
iadd
putfield sun.net.www.http.ChunkedInputStream.rawCount:I
12: aload 0
invokevirtual sun.net.www.http.ChunkedInputStream.processRaw:()V
end local 2 13: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkCount:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkPos:I
isub
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/net/www/http/ChunkedInputStream;
1 14 1 avail I
4 5 2 nread I
8 13 2 nread I
6 8 3 e Ljava/io/IOException;
Exception table:
from to target type
3 4 5 Class java.io.IOException
Exceptions:
throws java.io.IOException
private int readAheadBlocking();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.state:I
iconst_5
if_icmpne 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
bipush 32
invokevirtual sun.net.www.http.ChunkedInputStream.ensureRawAvailable:(I)V
3: aload 0
getfield sun.net.www.http.ChunkedInputStream.in:Ljava/io/InputStream;
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
arraylength
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
isub
invokevirtual java.io.InputStream.read:([BII)I
istore 1
start local 1 4: goto 8
end local 1 StackMap locals:
StackMap stack: java.io.IOException
5: astore 2
start local 2 6: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
7: aload 2
athrow
end local 2 start local 1 8: StackMap locals: int
StackMap stack:
iload 1
ifge 11
9: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
10: new java.io.IOException
dup
ldc "Premature EOF"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
aload 0
dup
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
iload 1
iadd
putfield sun.net.www.http.ChunkedInputStream.rawCount:I
12: aload 0
invokevirtual sun.net.www.http.ChunkedInputStream.processRaw:()V
end local 1 13: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkCount:I
14: ifle 0
15: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkCount:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkPos:I
isub
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lsun/net/www/http/ChunkedInputStream;
4 5 1 nread I
8 13 1 nread I
6 8 2 e Ljava/io/IOException;
Exception table:
from to target type
3 4 5 Class java.io.IOException
Exceptions:
throws java.io.IOException
private int readAhead(boolean);
descriptor: (Z)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.www.http.ChunkedInputStream.state:I
iconst_5
if_icmpne 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkPos:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkCount:I
if_icmplt 5
3: aload 0
iconst_0
putfield sun.net.www.http.ChunkedInputStream.chunkCount:I
4: aload 0
iconst_0
putfield sun.net.www.http.ChunkedInputStream.chunkPos:I
5: StackMap locals:
StackMap stack:
iload 1
ifeq 7
6: aload 0
invokevirtual sun.net.www.http.ChunkedInputStream.readAheadBlocking:()I
ireturn
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.http.ChunkedInputStream.readAheadNonBlocking:()I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/www/http/ChunkedInputStream;
0 8 1 allowBlocking Z
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
allowBlocking
public void (java.io.InputStream, sun.net.www.http.HttpClient, sun.net.www.MessageHeader);
descriptor: (Ljava/io/InputStream;Lsun/net/www/http/HttpClient;Lsun/net/www/MessageHeader;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.io.InputStream.<init>:()V
1: aload 0
sipush 4096
newarray 8
putfield sun.net.www.http.ChunkedInputStream.chunkData:[B
2: aload 0
bipush 32
newarray 8
putfield sun.net.www.http.ChunkedInputStream.rawData:[B
3: aload 0
aload 1
putfield sun.net.www.http.ChunkedInputStream.in:Ljava/io/InputStream;
4: aload 0
aload 3
putfield sun.net.www.http.ChunkedInputStream.responses:Lsun/net/www/MessageHeader;
5: aload 0
aload 2
putfield sun.net.www.http.ChunkedInputStream.hc:Lsun/net/www/http/HttpClient;
6: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.state:I
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/www/http/ChunkedInputStream;
0 8 1 in Ljava/io/InputStream;
0 8 2 hc Lsun/net/www/http/HttpClient;
0 8 3 responses Lsun/net/www/MessageHeader;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in
hc
responses
public synchronized int read();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.http.ChunkedInputStream.ensureOpen:()V
1: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkPos:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkCount:I
if_icmplt 4
2: aload 0
iconst_1
invokevirtual sun.net.www.http.ChunkedInputStream.readAhead:(Z)I
ifgt 4
3: iconst_m1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkData:[B
aload 0
dup
getfield sun.net.www.http.ChunkedInputStream.chunkPos:I
dup_x1
iconst_1
iadd
putfield sun.net.www.http.ChunkedInputStream.chunkPos:I
baload
sipush 255
iand
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/www/http/ChunkedInputStream;
Exceptions:
throws java.io.IOException
public synchronized int read(byte[], int, int);
descriptor: ([BII)I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual sun.net.www.http.ChunkedInputStream.ensureOpen:()V
1: iload 2
iflt 3
iload 2
aload 1
arraylength
if_icmpgt 3
iload 3
iflt 3
2: iload 2
iload 3
iadd
aload 1
arraylength
if_icmpgt 3
iload 2
iload 3
iadd
ifge 4
3: StackMap locals:
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
iload 3
ifne 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkCount:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkPos:I
isub
istore 4
start local 4 7: iload 4
ifgt 13
8: aload 0
getfield sun.net.www.http.ChunkedInputStream.state:I
iconst_2
if_icmpne 10
9: aload 0
aload 1
iload 2
iload 3
invokevirtual sun.net.www.http.ChunkedInputStream.fastRead:([BII)I
ireturn
10: StackMap locals: int
StackMap stack:
aload 0
iconst_1
invokevirtual sun.net.www.http.ChunkedInputStream.readAhead:(Z)I
istore 4
11: iload 4
ifge 13
12: iconst_m1
ireturn
13: StackMap locals:
StackMap stack:
iload 4
iload 3
if_icmpge 14
iload 4
goto 15
StackMap locals:
StackMap stack:
14: iload 3
StackMap locals:
StackMap stack: int
15: istore 5
start local 5 16: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkData:[B
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkPos:I
aload 1
iload 2
iload 5
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
17: aload 0
dup
getfield sun.net.www.http.ChunkedInputStream.chunkPos:I
iload 5
iadd
putfield sun.net.www.http.ChunkedInputStream.chunkPos:I
18: iload 5
ireturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lsun/net/www/http/ChunkedInputStream;
0 19 1 b [B
0 19 2 off I
0 19 3 len I
7 19 4 avail I
16 19 5 cnt I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public synchronized int available();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.http.ChunkedInputStream.ensureOpen:()V
1: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkCount:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkPos:I
isub
istore 1
start local 1 2: iload 1
ifle 4
3: iload 1
ireturn
4: StackMap locals: int
StackMap stack:
aload 0
iconst_0
invokevirtual sun.net.www.http.ChunkedInputStream.readAhead:(Z)I
istore 1
5: iload 1
ifge 7
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/www/http/ChunkedInputStream;
2 8 1 avail I
Exceptions:
throws java.io.IOException
public synchronized void close();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.ChunkedInputStream.closed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.net.www.http.ChunkedInputStream.closeUnderlying:()V
3: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.closed:Z
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/net/www/http/ChunkedInputStream;
Exceptions:
throws java.io.IOException
public synchronized boolean hurry();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.ChunkedInputStream.in:Ljava/io/InputStream;
ifnull 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.error:Z
ifeq 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual sun.net.www.http.ChunkedInputStream.readAhead:(Z)I
pop
3: goto 6
StackMap locals:
StackMap stack: java.lang.Exception
4: pop
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.error:Z
ifeq 8
7: iconst_0
ireturn
8: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.state:I
iconst_5
if_icmpne 9
iconst_1
ireturn
StackMap locals:
StackMap stack:
9: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/net/www/http/ChunkedInputStream;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
}
SourceFile: "ChunkedInputStream.java"