private final class Exchange.RequestBodySink
extends okio.ForwardingSink
Modifier and Type | Field and Description |
---|---|
private long |
bytesReceived |
private boolean |
closed |
private boolean |
completed |
private long |
contentLength
The exact number of bytes to be written, or -1L if that is unknown.
|
Constructor and Description |
---|
RequestBodySink(okio.Sink delegate,
long contentLength) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private java.io.IOException |
complete(java.io.IOException e) |
void |
flush() |
void |
write(okio.Buffer source,
long byteCount) |
private boolean completed
private long contentLength
private long bytesReceived
private boolean closed
public void write(okio.Buffer source, long byteCount) throws java.io.IOException
write
in interface okio.Sink
write
in class okio.ForwardingSink
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in interface okio.Sink
flush
in class okio.ForwardingSink
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface okio.Sink
close
in class okio.ForwardingSink
java.io.IOException
@Nullable private java.io.IOException complete(@Nullable java.io.IOException e)