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=9, 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 27
start local 2 6: StackMap locals: sun.net.httpserver.ChunkedInputStream int int char[] int int int
StackMap stack:
iload 2
i2c
istore 7
start local 7 7: iinc 6 1
8: iload 4
aload 3
arraylength
iconst_1
isub
if_icmpeq 10
9: iload 6
sipush 2050
if_icmple 11
10: StackMap locals: int
StackMap stack:
new java.io.IOException
dup
ldc "invalid chunk header"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
iload 1
ifeq 19
12: iload 7
bipush 10
if_icmpne 15
13: aload 0
aload 3
iload 4
invokevirtual sun.net.httpserver.ChunkedInputStream.numeric:([CI)I
istore 8
start local 8 14: iload 8
ireturn
end local 8 15: StackMap locals:
StackMap stack:
iconst_0
istore 1
16: iload 5
ifne 27
17: aload 3
iload 4
iinc 4 1
iload 7
castore
18: goto 27
19: StackMap locals:
StackMap stack:
iload 7
bipush 13
if_icmpne 22
20: iconst_1
istore 1
21: goto 27
StackMap locals:
StackMap stack:
22: iload 7
bipush 59
if_icmpne 25
23: iconst_1
istore 5
24: goto 27
StackMap locals:
StackMap stack:
25: iload 5
ifne 27
26: aload 3
iload 4
iinc 4 1
iload 7
castore
end local 7 end local 2 27: 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
dup
istore 2
start local 2 28: iconst_m1
if_icmpne 6
29: 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 30 0 this Lsun/net/httpserver/ChunkedInputStream;
1 30 1 gotCR Z
6 27 2 c I
28 30 2 c I
2 30 3 len_arr [C
3 30 4 len_size I
4 30 5 end_of_len Z
5 30 6 read I
7 27 7 ch C
14 15 8 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 10
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 9
5: aload 0
iconst_1
putfield sun.net.httpserver.ChunkedInputStream.eof:Z
6: aload 0
invokevirtual sun.net.httpserver.ChunkedInputStream.consumeCRLF:()V
7: aload 0
getfield sun.net.httpserver.ChunkedInputStream.t:Lsun/net/httpserver/ExchangeImpl;
invokevirtual sun.net.httpserver.ExchangeImpl.getServerImpl:()Lsun/net/httpserver/ServerImpl;
aload 0
getfield sun.net.httpserver.ChunkedInputStream.t:Lsun/net/httpserver/ExchangeImpl;
invokevirtual sun.net.httpserver.ExchangeImpl.getConnection:()Lsun/net/httpserver/HttpConnection;
invokevirtual sun.net.httpserver.ServerImpl.requestCompleted:(Lsun/net/httpserver/HttpConnection;)V
8: iconst_m1
ireturn
9: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.net.httpserver.ChunkedInputStream.needToReadHeader:Z
10: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield sun.net.httpserver.ChunkedInputStream.remaining:I
if_icmple 12
11: aload 0
getfield sun.net.httpserver.ChunkedInputStream.remaining:I
istore 3
12: 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 13: iload 4
iconst_m1
if_icmple 15
14: aload 0
dup
getfield sun.net.httpserver.ChunkedInputStream.remaining:I
iload 4
isub
putfield sun.net.httpserver.ChunkedInputStream.remaining:I
15: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.httpserver.ChunkedInputStream.remaining:I
ifne 18
16: aload 0
iconst_1
putfield sun.net.httpserver.ChunkedInputStream.needToReadHeader:Z
17: aload 0
invokevirtual sun.net.httpserver.ChunkedInputStream.consumeCRLF:()V
18: 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 19 0 this Lsun/net/httpserver/ChunkedInputStream;
0 19 1 b [B
0 19 2 off I
0 19 3 len I
13 19 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"