final class okhttp3.internal.http1.Http1Codec$FixedLengthSink implements okio.Sink
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: okhttp3.internal.http1.Http1Codec$FixedLengthSink
super_class: java.lang.Object
{
private final okio.ForwardingTimeout timeout;
descriptor: Lokio/ForwardingTimeout;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private long bytesRemaining;
descriptor: J
flags: (0x0002) ACC_PRIVATE
final okhttp3.internal.http1.Http1Codec this$0;
descriptor: Lokhttp3/internal/http1/Http1Codec;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(okhttp3.internal.http1.Http1Codec, long);
descriptor: (Lokhttp3/internal/http1/Http1Codec;J)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.this$0:Lokhttp3/internal/http1/Http1Codec;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new okio.ForwardingTimeout
dup
aload 1
getfield okhttp3.internal.http1.Http1Codec.sink:Lokio/BufferedSink;
invokeinterface okio.BufferedSink.timeout:()Lokio/Timeout;
invokespecial okio.ForwardingTimeout.<init>:(Lokio/Timeout;)V
putfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.timeout:Lokio/ForwardingTimeout;
2: aload 0
lload 2
putfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.bytesRemaining:J
3: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lokhttp3/internal/http1/Http1Codec$FixedLengthSink;
0 4 2 bytesRemaining J
MethodParameters:
Name Flags
this$0 final
bytesRemaining
public okio.Timeout timeout();
descriptor: ()Lokio/Timeout;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.timeout:Lokio/ForwardingTimeout;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lokhttp3/internal/http1/Http1Codec$FixedLengthSink;
public void write(okio.Buffer, long);
descriptor: (Lokio/Buffer;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.closed:Z
ifeq 1
new java.lang.IllegalStateException
dup
ldc "closed"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
1: StackMap locals:
StackMap stack:
aload 1
invokevirtual okio.Buffer.size:()J
lconst_0
lload 2
invokestatic okhttp3.internal.Util.checkOffsetAndCount:(JJJ)V
2: lload 2
aload 0
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.bytesRemaining:J
lcmp
ifle 6
3: new java.net.ProtocolException
dup
new java.lang.StringBuilder
dup
ldc "expected "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.bytesRemaining:J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
4: ldc " bytes but received "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
lload 2
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.net.ProtocolException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.this$0:Lokhttp3/internal/http1/Http1Codec;
getfield okhttp3.internal.http1.Http1Codec.sink:Lokio/BufferedSink;
aload 1
lload 2
invokeinterface okio.BufferedSink.write:(Lokio/Buffer;J)V
7: aload 0
dup
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.bytesRemaining:J
lload 2
lsub
putfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.bytesRemaining:J
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lokhttp3/internal/http1/Http1Codec$FixedLengthSink;
0 9 1 source Lokio/Buffer;
0 9 2 byteCount J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
source
byteCount
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.closed:Z
ifeq 1
return
1: StackMap locals:
StackMap stack:
aload 0
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.this$0:Lokhttp3/internal/http1/Http1Codec;
getfield okhttp3.internal.http1.Http1Codec.sink:Lokio/BufferedSink;
invokeinterface okio.BufferedSink.flush:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lokhttp3/internal/http1/Http1Codec$FixedLengthSink;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.closed:Z
ifeq 1
return
1: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.closed:Z
2: aload 0
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.bytesRemaining:J
lconst_0
lcmp
ifle 3
new java.net.ProtocolException
dup
ldc "unexpected end of stream"
invokespecial java.net.ProtocolException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.this$0:Lokhttp3/internal/http1/Http1Codec;
aload 0
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.timeout:Lokio/ForwardingTimeout;
invokevirtual okhttp3.internal.http1.Http1Codec.detachTimeout:(Lokio/ForwardingTimeout;)V
4: aload 0
getfield okhttp3.internal.http1.Http1Codec$FixedLengthSink.this$0:Lokhttp3/internal/http1/Http1Codec;
iconst_3
putfield okhttp3.internal.http1.Http1Codec.state:I
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lokhttp3/internal/http1/Http1Codec$FixedLengthSink;
Exceptions:
throws java.io.IOException
}
SourceFile: "Http1Codec.java"
NestHost: okhttp3.internal.http1.Http1Codec
InnerClasses:
private final FixedLengthSink = okhttp3.internal.http1.Http1Codec$FixedLengthSink of okhttp3.internal.http1.Http1Codec