class sun.net.httpserver.ChunkedInputStream extends sun.net.httpserver.LeftOverInputStream
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.httpserver.ChunkedInputStream
super_class: sun.net.httpserver.LeftOverInputStream
{
private int remaining;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean ;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static final char CR;
descriptor: C
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 13
static final char LF;
descriptor: C
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 10
private static final int ;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2050
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/net/httpserver/ChunkedInputStream;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.net.httpserver.ChunkedInputStream.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(sun.net.httpserver.ExchangeImpl, java.io.InputStream);
descriptor: (Lsun/net/httpserver/ExchangeImpl;Ljava/io/InputStream;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial sun.net.httpserver.LeftOverInputStream.<init>:(Lsun/net/httpserver/ExchangeImpl;Ljava/io/InputStream;)V
1: aload 0
iconst_1
putfield sun.net.httpserver.ChunkedInputStream.needToReadHeader:Z
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/httpserver/ChunkedInputStream;
0 3 1 t Lsun/net/httpserver/ExchangeImpl;
0 3 2 src Ljava/io/InputStream;
MethodParameters:
Name Flags
t
src
private int numeric(char[], int);
descriptor: ([CI)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: getstatic sun.net.httpserver.ChunkedInputStream.$assertionsDisabled:Z
ifne 1
aload 1
arraylength
iload 2
if_icmpge 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 2: iconst_0
istore 4
start local 4 3: goto 18
4: StackMap locals: int int
StackMap stack:
aload 1
iload 4
caload
istore 5
start local 5 5: iconst_0
istore 6
start local 6 6: iload 5
bipush 48
if_icmplt 9
iload 5
bipush 57
if_icmpgt 9
7: iload 5
bipush 48
isub
istore 6
8: goto 16
StackMap locals: int int
StackMap stack:
9: iload 5
bipush 97
if_icmplt 12
iload 5
bipush 102
if_icmpgt 12
10: iload 5
bipush 97
isub
bipush 10
iadd
istore 6
11: goto 16
StackMap locals:
StackMap stack:
12: iload 5
bipush 65
if_icmplt 15
iload 5
bipush 70
if_icmpgt 15
13: iload 5
bipush 65
isub
bipush 10
iadd
istore 6
14: goto 16
15: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "invalid chunk length"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack:
iload 3
bipush 16
imul
iload 6
iadd
istore 3
end local 6 end local 5 17: iinc 4 1
StackMap locals:
StackMap stack:
18: iload 4
iload 2
if_icmplt 4
end local 4 19: iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/net/httpserver/ChunkedInputStream;
0 20 1 arr [C
0 20 2 nchars I
2 20 3 len I
3 19 4 i I
5 17 5 c C
6 17 6 val I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
arr
nchars
private int ();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=8, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: bipush 16
newarray 5
astore 3
start local 3 2: iconst_0
istore 4
start local 4 3: iconst_0
istore 5
start local 5 4: iconst_0
istore 6
start local 6 5: goto 26
start local 2 6: StackMap locals: sun.net.httpserver.ChunkedInputStream int int char[] int int int
StackMap stack:
iinc 6 1
7: iload 4
aload 3
arraylength
iconst_1
isub
if_icmpeq 9
8: iload 6
sipush 2050
if_icmple 10
9: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "invalid chunk header"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals:
StackMap stack:
iload 1
ifeq 18
11: iload 2
bipush 10
if_icmpne 14
12: aload 0
aload 3
iload 4
invokevirtual sun.net.httpserver.ChunkedInputStream.numeric:([CI)I
istore 7
start local 7 13: iload 7
ireturn
end local 7 14: StackMap locals:
StackMap stack:
iconst_0
istore 1
15: iload 5
ifne 26
16: aload 3
iload 4
iinc 4 1
iload 2
castore
17: goto 26
18: StackMap locals:
StackMap stack:
iload 2
bipush 13
if_icmpne 21
19: iconst_1
istore 1
20: goto 26
StackMap locals:
StackMap stack:
21: iload 2
bipush 59
if_icmpne 24
22: iconst_1
istore 5
23: goto 26
StackMap locals:
StackMap stack:
24: iload 5
ifne 26
25: aload 3
iload 4
iinc 4 1
iload 2
castore
end local 2 26: StackMap locals: sun.net.httpserver.ChunkedInputStream int top char[] int int int
StackMap stack:
aload 0
getfield sun.net.httpserver.ChunkedInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
i2c
dup
istore 2
start local 2 27: iconst_m1
if_icmpne 6
28: new java.io.IOException
dup
ldc "end of stream reading chunk header"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 6 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 29 0 this Lsun/net/httpserver/ChunkedInputStream;
1 29 1 gotCR Z
6 26 2 c C
27 29 2 c C
2 29 3 len_arr [C
3 29 4 len_size I
4 29 5 end_of_len Z
5 29 6 read I
13 14 7 l I
Exceptions:
throws java.io.IOException
protected int readImpl(byte[], int, int);
descriptor: ([BII)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield sun.net.httpserver.ChunkedInputStream.eof:Z
ifeq 2
1: iconst_m1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ChunkedInputStream.needToReadHeader:Z
ifeq 9
3: aload 0
aload 0
invokevirtual sun.net.httpserver.ChunkedInputStream.readChunkHeader:()I
putfield sun.net.httpserver.ChunkedInputStream.remaining:I
4: aload 0
getfield sun.net.httpserver.ChunkedInputStream.remaining:I
ifne 8
5: aload 0
iconst_1
putfield sun.net.httpserver.ChunkedInputStream.eof:Z
6: aload 0
invokevirtual sun.net.httpserver.ChunkedInputStream.consumeCRLF:()V
7: iconst_m1
ireturn
8: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.net.httpserver.ChunkedInputStream.needToReadHeader:Z
9: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield sun.net.httpserver.ChunkedInputStream.remaining:I
if_icmple 11
10: aload 0
getfield sun.net.httpserver.ChunkedInputStream.remaining:I
istore 3
11: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ChunkedInputStream.in:Ljava/io/InputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.InputStream.read:([BII)I
istore 4
start local 4 12: iload 4
iconst_m1
if_icmple 14
13: aload 0
dup
getfield sun.net.httpserver.ChunkedInputStream.remaining:I
iload 4
isub
putfield sun.net.httpserver.ChunkedInputStream.remaining:I
14: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.httpserver.ChunkedInputStream.remaining:I
ifne 17
15: aload 0
iconst_1
putfield sun.net.httpserver.ChunkedInputStream.needToReadHeader:Z
16: aload 0
invokevirtual sun.net.httpserver.ChunkedInputStream.consumeCRLF:()V
17: StackMap locals:
StackMap stack:
iload 4
ireturn
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/httpserver/ChunkedInputStream;
0 18 1 b [B
0 18 2 off I
0 18 3 len I
12 18 4 n I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
private void consumeCRLF();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.ChunkedInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
i2c
istore 1
start local 1 1: iload 1
bipush 13
if_icmpeq 3
2: new java.io.IOException
dup
ldc "invalid chunk end"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.httpserver.ChunkedInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
i2c
istore 1
4: iload 1
bipush 10
if_icmpeq 6
5: new java.io.IOException
dup
ldc "invalid chunk end"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/httpserver/ChunkedInputStream;
1 7 1 c C
Exceptions:
throws java.io.IOException
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.net.httpserver.ChunkedInputStream.eof:Z
ifne 1
aload 0
getfield sun.net.httpserver.ChunkedInputStream.closed:Z
ifeq 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ChunkedInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.available:()I
istore 1
start local 1 3: iload 1
aload 0
getfield sun.net.httpserver.ChunkedInputStream.remaining:I
if_icmple 4
aload 0
getfield sun.net.httpserver.ChunkedInputStream.remaining:I
goto 5
StackMap locals: int
StackMap stack:
4: iload 1
StackMap locals:
StackMap stack: int
5: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/httpserver/ChunkedInputStream;
3 6 1 n I
Exceptions:
throws java.io.IOException
public boolean isDataBuffered();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic sun.net.httpserver.ChunkedInputStream.$assertionsDisabled:Z
ifne 1
aload 0
getfield sun.net.httpserver.ChunkedInputStream.eof:Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.httpserver.ChunkedInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.available:()I
ifle 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/httpserver/ChunkedInputStream;
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/httpserver/ChunkedInputStream;
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/httpserver/ChunkedInputStream;
0 1 1 l I
MethodParameters:
Name Flags
l
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/httpserver/ChunkedInputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "ChunkedInputStream.java"