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 90
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.state:I
tableswitch { // 1 - 4
1: 2
2: 32
3: 53
4: 64
default: 90
}
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
ldc "US-ASCII"
invokespecial java.lang.String.<init>:([BIILjava/lang/String;)V
astore 3
start local 3 14: iconst_0
istore 2
start local 2 15: goto 19
16: 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 18
17: goto 20
18: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
19: iload 2
aload 3
invokevirtual java.lang.String.length:()I
if_icmplt 16
20: StackMap locals:
StackMap stack:
aload 0
aload 3
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
bipush 16
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;I)I
putfield sun.net.www.http.ChunkedInputStream.chunkSize:I
21: goto 25
StackMap locals:
StackMap stack: java.lang.NumberFormatException
22: pop
23: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
24: new java.io.IOException
dup
ldc "Bogus chunk size"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
aload 0
iload 1
iconst_1
iadd
putfield sun.net.www.http.ChunkedInputStream.rawPos:I
26: aload 0
iconst_0
putfield sun.net.www.http.ChunkedInputStream.chunkRead:I
27: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkSize:I
ifle 30
28: aload 0
iconst_2
putfield sun.net.www.http.ChunkedInputStream.state:I
29: goto 90
30: StackMap locals:
StackMap stack:
aload 0
iconst_4
putfield sun.net.www.http.ChunkedInputStream.state:I
31: goto 90
end local 3 end local 2 end local 1 32: 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 34
33: return
34: 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 35: 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 45
36: 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 37: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkData:[B
arraylength
iload 5
iload 4
iadd
if_icmpge 42
38: iload 5
iload 4
iadd
newarray 8
astore 6
start local 6 39: 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
40: aload 0
aload 6
putfield sun.net.www.http.ChunkedInputStream.chunkData:[B
end local 6 41: goto 43
42: 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
43: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.net.www.http.ChunkedInputStream.chunkPos:I
44: aload 0
iload 5
putfield sun.net.www.http.ChunkedInputStream.chunkCount:I
end local 5 45: 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
46: aload 0
dup
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
iload 4
iadd
putfield sun.net.www.http.ChunkedInputStream.rawPos:I
47: aload 0
dup
getfield sun.net.www.http.ChunkedInputStream.chunkCount:I
iload 4
iadd
putfield sun.net.www.http.ChunkedInputStream.chunkCount:I
48: aload 0
dup
getfield sun.net.www.http.ChunkedInputStream.chunkRead:I
iload 4
iadd
putfield sun.net.www.http.ChunkedInputStream.chunkRead:I
49: aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkSize:I
aload 0
getfield sun.net.www.http.ChunkedInputStream.chunkRead:I
isub
ifgt 52
50: aload 0
iconst_3
putfield sun.net.www.http.ChunkedInputStream.state:I
51: goto 90
52: StackMap locals:
StackMap stack:
return
end local 4 53: 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 55
54: return
55: 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 58
56: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
57: new java.io.IOException
dup
ldc "missing CR"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
58: 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 61
59: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
60: new java.io.IOException
dup
ldc "missing LF"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
61: 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
62: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.state:I
63: goto 90
64: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
istore 1
start local 1 65: goto 69
66: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
iload 1
baload
bipush 10
if_icmpne 68
67: goto 70
68: StackMap locals:
StackMap stack:
iinc 1 1
69: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
if_icmplt 66
70: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawCount:I
if_icmplt 72
71: return
72: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
if_icmpne 75
73: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
74: new java.io.IOException
dup
ldc "LF should be proceeded by CR"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
75: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawData:[B
iload 1
iconst_1
isub
baload
bipush 13
if_icmpeq 78
76: aload 0
iconst_1
putfield sun.net.www.http.ChunkedInputStream.error:Z
77: new java.io.IOException
dup
ldc "LF should be proceeded by CR"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
78: StackMap locals:
StackMap stack:
iload 1
aload 0
getfield sun.net.www.http.ChunkedInputStream.rawPos:I
iconst_1
iadd
if_icmpne 82
79: aload 0
iconst_5
putfield sun.net.www.http.ChunkedInputStream.state:I
80: aload 0
invokevirtual sun.net.www.http.ChunkedInputStream.closeUnderlying:()V
81: return
82: 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
ldc "US-ASCII"
invokespecial java.lang.String.<init>:([BIILjava/lang/String;)V
astore 5
start local 5 83: aload 5
bipush 58
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 84: iload 2
iconst_m1
if_icmpne 86
85: new java.io.IOException
dup
ldc "Malformed tailer - format should be key:value"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
86: 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 87: 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 88: 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
89: 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 90: StackMap locals: sun.net.www.http.ChunkedInputStream
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedInputStream.state:I
iconst_5
if_icmpne 1
91: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 92 0 this Lsun/net/www/http/ChunkedInputStream;
3 32 1 pos I
65 90 1 pos I
15 32 2 i I
84 90 2 i I
14 32 3 header Ljava/lang/String;
35 53 4 copyLen I
37 45 5 cnt I
39 41 6 tmp [B
83 90 5 trailer Ljava/lang/String;
87 90 6 key Ljava/lang/String;
88 90 7 value Ljava/lang/String;
Exception table:
from to target type
20 21 22 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"