class sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream extends java.io.FilterOutputStream
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream
super_class: java.io.FilterOutputStream
{
long expected;
descriptor: J
flags: (0x0000)
long written;
descriptor: J
flags: (0x0000)
boolean closed;
descriptor: Z
flags: (0x0000)
boolean error;
descriptor: Z
flags: (0x0000)
java.io.IOException errorExcp;
descriptor: Ljava/io/IOException;
flags: (0x0000)
final sun.net.www.protocol.http.HttpURLConnection this$0;
descriptor: Lsun/net/www/protocol/http/HttpURLConnection;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(sun.net.www.protocol.http.HttpURLConnection, java.io.OutputStream, long);
descriptor: (Lsun/net/www/protocol/http/HttpURLConnection;Ljava/io/OutputStream;J)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=4
start local 0 start local 2 start local 3 0: aload 0
aload 1
putfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.this$0:Lsun/net/www/protocol/http/HttpURLConnection;
1: aload 0
aload 2
invokespecial java.io.FilterOutputStream.<init>:(Ljava/io/OutputStream;)V
2: aload 0
lload 3
putfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.expected:J
3: aload 0
lconst_0
putfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.written:J
4: aload 0
iconst_0
putfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.closed:Z
5: aload 0
iconst_0
putfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.error:Z
6: return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/www/protocol/http/HttpURLConnection$StreamingOutputStream;
0 7 2 os Ljava/io/OutputStream;
0 7 3 expectedLength J
MethodParameters:
Name Flags
this$0 final
os
expectedLength
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkError:()V
1: aload 0
dup
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.written:J
lconst_1
ladd
putfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.written:J
2: aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.expected:J
ldc -1
lcmp
ifeq 4
aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.written:J
aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.expected:J
lcmp
ifle 4
3: new java.io.IOException
dup
ldc "too many bytes written"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.out:Ljava/io/OutputStream;
iload 1
invokevirtual java.io.OutputStream.write:(I)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/www/protocol/http/HttpURLConnection$StreamingOutputStream;
0 6 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void write(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.write:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/protocol/http/HttpURLConnection$StreamingOutputStream;
0 2 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.checkError:()V
1: aload 0
dup
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.written:J
iload 3
i2l
ladd
putfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.written:J
2: aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.expected:J
ldc -1
lcmp
ifeq 5
aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.written:J
aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.expected:J
lcmp
ifle 5
3: aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
4: new java.io.IOException
dup
ldc "too many bytes written"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.out:Ljava/io/OutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/www/protocol/http/HttpURLConnection$StreamingOutputStream;
0 7 1 b [B
0 7 2 off I
0 7 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
void checkError();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.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:
aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.error:Z
ifeq 4
3: aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.errorExcp:Ljava/io/IOException;
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.out:Ljava/io/OutputStream;
checkcast java.io.PrintStream
invokevirtual java.io.PrintStream.checkError:()Z
ifeq 6
5: new java.io.IOException
dup
ldc "Error writing request body to server"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/www/protocol/http/HttpURLConnection$StreamingOutputStream;
Exceptions:
throws java.io.IOException
boolean writtenOK();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.closed:Z
ifeq 1
aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.error:Z
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/protocol/http/HttpURLConnection$StreamingOutputStream;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.closed:Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.closed:Z
3: aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.expected:J
ldc -1
lcmp
ifeq 11
4: aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.written:J
aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.expected:J
lcmp
ifeq 9
5: aload 0
iconst_1
putfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.error:Z
6: aload 0
new java.io.IOException
dup
ldc "insufficient data written"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
putfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.errorExcp:Ljava/io/IOException;
7: aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
8: aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.errorExcp:Ljava/io/IOException;
athrow
9: StackMap locals:
StackMap stack:
aload 0
invokespecial java.io.FilterOutputStream.flush:()V
10: goto 16
11: StackMap locals:
StackMap stack:
aload 0
invokespecial java.io.FilterOutputStream.close:()V
12: aload 0
getfield sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream.this$0:Lsun/net/www/protocol/http/HttpURLConnection;
getfield sun.net.www.protocol.http.HttpURLConnection.http:Lsun/net/www/http/HttpClient;
invokevirtual sun.net.www.http.HttpClient.getOutputStream:()Ljava/io/OutputStream;
astore 1
start local 1 13: aload 1
bipush 13
invokevirtual java.io.OutputStream.write:(I)V
14: aload 1
bipush 10
invokevirtual java.io.OutputStream.write:(I)V
15: aload 1
invokevirtual java.io.OutputStream.flush:()V
end local 1 16: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/net/www/protocol/http/HttpURLConnection$StreamingOutputStream;
13 16 1 o Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "HttpURLConnection.java"
NestHost: sun.net.www.protocol.http.HttpURLConnection
InnerClasses:
StreamingOutputStream = sun.net.www.protocol.http.HttpURLConnection$StreamingOutputStream of sun.net.www.protocol.http.HttpURLConnection