public class sun.net.www.http.ChunkedOutputStream extends java.io.PrintStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.www.http.ChunkedOutputStream
super_class: java.io.PrintStream
{
static final int DEFAULT_CHUNK_SIZE;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 4096
private static final byte[] CRLF;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int CRLF_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final byte[] ;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int ;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final byte[] ;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int ;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private byte[] buf;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int size;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int count;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int spaceInCurrentChunk;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.io.PrintStream out;
descriptor: Ljava/io/PrintStream;
flags: (0x0002) ACC_PRIVATE
private int preferredChunkDataSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int ;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int preferredChunkGrossSize;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private byte[] ;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: iconst_2
newarray 8
dup
iconst_0
bipush 13
bastore
dup
iconst_1
bipush 10
bastore
putstatic sun.net.www.http.ChunkedOutputStream.CRLF:[B
1: getstatic sun.net.www.http.ChunkedOutputStream.CRLF:[B
arraylength
putstatic sun.net.www.http.ChunkedOutputStream.CRLF_SIZE:I
2: getstatic sun.net.www.http.ChunkedOutputStream.CRLF:[B
putstatic sun.net.www.http.ChunkedOutputStream.FOOTER:[B
3: getstatic sun.net.www.http.ChunkedOutputStream.CRLF_SIZE:I
putstatic sun.net.www.http.ChunkedOutputStream.FOOTER_SIZE:I
4: iconst_0
invokestatic sun.net.www.http.ChunkedOutputStream.getHeader:(I)[B
putstatic sun.net.www.http.ChunkedOutputStream.EMPTY_CHUNK_HEADER:[B
5: iconst_0
invokestatic sun.net.www.http.ChunkedOutputStream.getHeaderSize:(I)I
putstatic sun.net.www.http.ChunkedOutputStream.EMPTY_CHUNK_HEADER_SIZE:I
return
LocalVariableTable:
Start End Slot Name Signature
private static int (int);
descriptor: (I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.String.length:()I
getstatic sun.net.www.http.ChunkedOutputStream.CRLF_SIZE:I
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 size I
MethodParameters:
Name Flags
size
private static byte[] (int);
descriptor: (I)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: iload 0
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc "US-ASCII"
invokevirtual java.lang.String.getBytes:(Ljava/lang/String;)[B
astore 2
start local 2 2: iload 0
invokestatic sun.net.www.http.ChunkedOutputStream.getHeaderSize:(I)I
newarray 8
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 7
5: StackMap locals: int java.lang.String byte[] byte[] int
StackMap stack:
aload 3
iload 4
aload 2
iload 4
baload
bastore
6: iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
aload 2
arraylength
if_icmplt 5
end local 4 8: aload 3
aload 2
arraylength
getstatic sun.net.www.http.ChunkedOutputStream.CRLF:[B
iconst_0
baload
bastore
9: aload 3
aload 2
arraylength
iconst_1
iadd
getstatic sun.net.www.http.ChunkedOutputStream.CRLF:[B
iconst_1
baload
bastore
10: aload 3
11: areturn
end local 3 end local 2 end local 1 12: StackMap locals: int
StackMap stack: java.io.UnsupportedEncodingException
astore 1
start local 1 13: new java.lang.InternalError
dup
aload 1
invokevirtual java.io.UnsupportedEncodingException.getMessage:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 size I
1 12 1 hexStr Ljava/lang/String;
2 12 2 hexBytes [B
3 12 3 header [B
4 8 4 i I
13 14 1 e Ljava/io/UnsupportedEncodingException;
Exception table:
from to target type
0 11 12 Class java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
size
public void <init>(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
sipush 4096
invokespecial sun.net.www.http.ChunkedOutputStream.<init>:(Ljava/io/PrintStream;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/http/ChunkedOutputStream;
0 2 1 o Ljava/io/PrintStream;
MethodParameters:
Name Flags
o
public void <init>(java.io.PrintStream, int);
descriptor: (Ljava/io/PrintStream;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
1: aload 0
aload 1
putfield sun.net.www.http.ChunkedOutputStream.out:Ljava/io/PrintStream;
2: iload 2
ifgt 4
3: sipush 4096
istore 2
4: StackMap locals: sun.net.www.http.ChunkedOutputStream java.io.PrintStream int
StackMap stack:
iload 2
ifle 9
5: iload 2
iload 2
invokestatic sun.net.www.http.ChunkedOutputStream.getHeaderSize:(I)I
isub
getstatic sun.net.www.http.ChunkedOutputStream.FOOTER_SIZE:I
isub
istore 3
start local 3 6: iload 3
iconst_1
iadd
invokestatic sun.net.www.http.ChunkedOutputStream.getHeaderSize:(I)I
iload 2
invokestatic sun.net.www.http.ChunkedOutputStream.getHeaderSize:(I)I
if_icmpge 8
7: iinc 3 1
8: StackMap locals: int
StackMap stack:
iload 3
istore 2
end local 3 9: StackMap locals:
StackMap stack:
iload 2
ifle 12
10: aload 0
iload 2
putfield sun.net.www.http.ChunkedOutputStream.preferredChunkDataSize:I
11: goto 15
12: StackMap locals:
StackMap stack:
aload 0
sipush 4096
13: sipush 4096
invokestatic sun.net.www.http.ChunkedOutputStream.getHeaderSize:(I)I
isub
getstatic sun.net.www.http.ChunkedOutputStream.FOOTER_SIZE:I
isub
14: putfield sun.net.www.http.ChunkedOutputStream.preferredChunkDataSize:I
15: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield sun.net.www.http.ChunkedOutputStream.preferredChunkDataSize:I
invokestatic sun.net.www.http.ChunkedOutputStream.getHeaderSize:(I)I
putfield sun.net.www.http.ChunkedOutputStream.preferedHeaderSize:I
16: aload 0
aload 0
getfield sun.net.www.http.ChunkedOutputStream.preferedHeaderSize:I
aload 0
getfield sun.net.www.http.ChunkedOutputStream.preferredChunkDataSize:I
iadd
17: getstatic sun.net.www.http.ChunkedOutputStream.FOOTER_SIZE:I
iadd
18: putfield sun.net.www.http.ChunkedOutputStream.preferredChunkGrossSize:I
19: aload 0
aload 0
getfield sun.net.www.http.ChunkedOutputStream.preferredChunkDataSize:I
invokestatic sun.net.www.http.ChunkedOutputStream.getHeader:(I)[B
putfield sun.net.www.http.ChunkedOutputStream.completeHeader:[B
20: aload 0
aload 0
getfield sun.net.www.http.ChunkedOutputStream.preferredChunkGrossSize:I
newarray 8
putfield sun.net.www.http.ChunkedOutputStream.buf:[B
21: aload 0
invokevirtual sun.net.www.http.ChunkedOutputStream.reset:()V
22: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lsun/net/www/http/ChunkedOutputStream;
0 23 1 o Ljava/io/PrintStream;
0 23 2 size I
6 9 3 adjusted_size I
MethodParameters:
Name Flags
o
size
private void flush(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.www.http.ChunkedOutputStream.spaceInCurrentChunk:I
ifne 5
1: aload 0
getfield sun.net.www.http.ChunkedOutputStream.out:Ljava/io/PrintStream;
aload 0
getfield sun.net.www.http.ChunkedOutputStream.buf:[B
iconst_0
aload 0
getfield sun.net.www.http.ChunkedOutputStream.preferredChunkGrossSize:I
invokevirtual java.io.PrintStream.write:([BII)V
2: aload 0
getfield sun.net.www.http.ChunkedOutputStream.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.flush:()V
3: aload 0
invokevirtual sun.net.www.http.ChunkedOutputStream.reset:()V
4: goto 20
StackMap locals:
StackMap stack:
5: iload 1
ifeq 20
6: aload 0
getfield sun.net.www.http.ChunkedOutputStream.size:I
ifle 17
7: aload 0
getfield sun.net.www.http.ChunkedOutputStream.preferedHeaderSize:I
8: aload 0
getfield sun.net.www.http.ChunkedOutputStream.size:I
invokestatic sun.net.www.http.ChunkedOutputStream.getHeaderSize:(I)I
9: isub
istore 2
start local 2 10: aload 0
getfield sun.net.www.http.ChunkedOutputStream.size:I
invokestatic sun.net.www.http.ChunkedOutputStream.getHeader:(I)[B
iconst_0
aload 0
getfield sun.net.www.http.ChunkedOutputStream.buf:[B
11: iload 2
aload 0
getfield sun.net.www.http.ChunkedOutputStream.size:I
invokestatic sun.net.www.http.ChunkedOutputStream.getHeaderSize:(I)I
12: invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
13: aload 0
getfield sun.net.www.http.ChunkedOutputStream.buf:[B
aload 0
dup
getfield sun.net.www.http.ChunkedOutputStream.count:I
dup_x1
iconst_1
iadd
putfield sun.net.www.http.ChunkedOutputStream.count:I
getstatic sun.net.www.http.ChunkedOutputStream.FOOTER:[B
iconst_0
baload
bastore
14: aload 0
getfield sun.net.www.http.ChunkedOutputStream.buf:[B
aload 0
dup
getfield sun.net.www.http.ChunkedOutputStream.count:I
dup_x1
iconst_1
iadd
putfield sun.net.www.http.ChunkedOutputStream.count:I
getstatic sun.net.www.http.ChunkedOutputStream.FOOTER:[B
iconst_1
baload
bastore
15: aload 0
getfield sun.net.www.http.ChunkedOutputStream.out:Ljava/io/PrintStream;
aload 0
getfield sun.net.www.http.ChunkedOutputStream.buf:[B
iload 2
aload 0
getfield sun.net.www.http.ChunkedOutputStream.count:I
iload 2
isub
invokevirtual java.io.PrintStream.write:([BII)V
end local 2 16: goto 18
17: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedOutputStream.out:Ljava/io/PrintStream;
getstatic sun.net.www.http.ChunkedOutputStream.EMPTY_CHUNK_HEADER:[B
iconst_0
getstatic sun.net.www.http.ChunkedOutputStream.EMPTY_CHUNK_HEADER_SIZE:I
invokevirtual java.io.PrintStream.write:([BII)V
18: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedOutputStream.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.flush:()V
19: aload 0
invokevirtual sun.net.www.http.ChunkedOutputStream.reset:()V
20: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/net/www/http/ChunkedOutputStream;
0 21 1 flushAll Z
10 16 2 adjustedHeaderStartIndex I
MethodParameters:
Name Flags
flushAll
public boolean checkError();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.ChunkedOutputStream.out:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.checkError:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/http/ChunkedOutputStream;
private void ensureOpen();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.ChunkedOutputStream.out:Ljava/io/PrintStream;
ifnonnull 2
1: aload 0
invokevirtual sun.net.www.http.ChunkedOutputStream.setError:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/http/ChunkedOutputStream;
public synchronized void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual sun.net.www.http.ChunkedOutputStream.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: return
6: StackMap locals:
StackMap stack:
iload 3
istore 4
start local 4 7: iload 2
istore 5
start local 5 8: StackMap locals: int int
StackMap stack:
iload 4
aload 0
getfield sun.net.www.http.ChunkedOutputStream.spaceInCurrentChunk:I
if_icmplt 24
9: iconst_0
istore 6
start local 6 10: goto 13
11: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.www.http.ChunkedOutputStream.buf:[B
iload 6
aload 0
getfield sun.net.www.http.ChunkedOutputStream.completeHeader:[B
iload 6
baload
bastore
12: iinc 6 1
StackMap locals:
StackMap stack:
13: iload 6
aload 0
getfield sun.net.www.http.ChunkedOutputStream.completeHeader:[B
arraylength
if_icmplt 11
end local 6 14: aload 1
iload 5
aload 0
getfield sun.net.www.http.ChunkedOutputStream.buf:[B
aload 0
getfield sun.net.www.http.ChunkedOutputStream.count:I
aload 0
getfield sun.net.www.http.ChunkedOutputStream.spaceInCurrentChunk:I
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
15: iload 5
aload 0
getfield sun.net.www.http.ChunkedOutputStream.spaceInCurrentChunk:I
iadd
istore 5
16: iload 4
aload 0
getfield sun.net.www.http.ChunkedOutputStream.spaceInCurrentChunk:I
isub
istore 4
17: aload 0
dup
getfield sun.net.www.http.ChunkedOutputStream.count:I
aload 0
getfield sun.net.www.http.ChunkedOutputStream.spaceInCurrentChunk:I
iadd
putfield sun.net.www.http.ChunkedOutputStream.count:I
18: aload 0
getfield sun.net.www.http.ChunkedOutputStream.buf:[B
aload 0
dup
getfield sun.net.www.http.ChunkedOutputStream.count:I
dup_x1
iconst_1
iadd
putfield sun.net.www.http.ChunkedOutputStream.count:I
getstatic sun.net.www.http.ChunkedOutputStream.FOOTER:[B
iconst_0
baload
bastore
19: aload 0
getfield sun.net.www.http.ChunkedOutputStream.buf:[B
aload 0
dup
getfield sun.net.www.http.ChunkedOutputStream.count:I
dup_x1
iconst_1
iadd
putfield sun.net.www.http.ChunkedOutputStream.count:I
getstatic sun.net.www.http.ChunkedOutputStream.FOOTER:[B
iconst_1
baload
bastore
20: aload 0
iconst_0
putfield sun.net.www.http.ChunkedOutputStream.spaceInCurrentChunk:I
21: aload 0
iconst_0
invokevirtual sun.net.www.http.ChunkedOutputStream.flush:(Z)V
22: aload 0
invokevirtual sun.net.www.http.ChunkedOutputStream.checkError:()Z
ifeq 29
23: goto 31
24: StackMap locals:
StackMap stack:
aload 1
iload 5
aload 0
getfield sun.net.www.http.ChunkedOutputStream.buf:[B
aload 0
getfield sun.net.www.http.ChunkedOutputStream.count:I
iload 4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
25: aload 0
dup
getfield sun.net.www.http.ChunkedOutputStream.count:I
iload 4
iadd
putfield sun.net.www.http.ChunkedOutputStream.count:I
26: aload 0
dup
getfield sun.net.www.http.ChunkedOutputStream.size:I
iload 4
iadd
putfield sun.net.www.http.ChunkedOutputStream.size:I
27: aload 0
dup
getfield sun.net.www.http.ChunkedOutputStream.spaceInCurrentChunk:I
iload 4
isub
putfield sun.net.www.http.ChunkedOutputStream.spaceInCurrentChunk:I
28: iconst_0
istore 4
29: StackMap locals:
StackMap stack:
iload 4
30: ifgt 8
31: StackMap locals:
StackMap stack:
return
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 32 0 this Lsun/net/www/http/ChunkedOutputStream;
0 32 1 b [B
0 32 2 off I
0 32 3 len I
7 32 4 bytesToWrite I
8 32 5 inputIndex I
10 14 6 i I
MethodParameters:
Name Flags
b
off
len
public synchronized void write(int);
descriptor: (I)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iconst_1
newarray 8
dup
iconst_0
iload 1
i2b
bastore
astore 2
start local 2 1: aload 0
aload 2
iconst_0
iconst_1
invokevirtual sun.net.www.http.ChunkedOutputStream.write:([BII)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/http/ChunkedOutputStream;
0 3 1 _b I
1 3 2 b [B
MethodParameters:
Name Flags
_b
public synchronized void reset();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield sun.net.www.http.ChunkedOutputStream.preferedHeaderSize:I
putfield sun.net.www.http.ChunkedOutputStream.count:I
1: aload 0
iconst_0
putfield sun.net.www.http.ChunkedOutputStream.size:I
2: aload 0
aload 0
getfield sun.net.www.http.ChunkedOutputStream.preferredChunkDataSize:I
putfield sun.net.www.http.ChunkedOutputStream.spaceInCurrentChunk:I
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/www/http/ChunkedOutputStream;
public int size();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.http.ChunkedOutputStream.size:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/http/ChunkedOutputStream;
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
invokevirtual sun.net.www.http.ChunkedOutputStream.ensureOpen:()V
1: aload 0
getfield sun.net.www.http.ChunkedOutputStream.size:I
ifle 3
2: aload 0
iconst_1
invokevirtual sun.net.www.http.ChunkedOutputStream.flush:(Z)V
3: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokevirtual sun.net.www.http.ChunkedOutputStream.flush:(Z)V
4: aload 0
aconst_null
putfield sun.net.www.http.ChunkedOutputStream.out:Ljava/io/PrintStream;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/www/http/ChunkedOutputStream;
public synchronized void flush();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.net.www.http.ChunkedOutputStream.ensureOpen:()V
1: aload 0
getfield sun.net.www.http.ChunkedOutputStream.size:I
ifle 3
2: aload 0
iconst_1
invokevirtual sun.net.www.http.ChunkedOutputStream.flush:(Z)V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/www/http/ChunkedOutputStream;
}
SourceFile: "ChunkedOutputStream.java"