private final class Http1Codec.FixedLengthSink
extends java.lang.Object
implements okio.Sink
Modifier and Type | Field and Description |
---|---|
private long |
bytesRemaining |
private boolean |
closed |
private okio.ForwardingTimeout |
timeout |
Constructor and Description |
---|
FixedLengthSink(long bytesRemaining) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
okio.Timeout |
timeout() |
void |
write(okio.Buffer source,
long byteCount) |
private final okio.ForwardingTimeout timeout
private boolean closed
private long bytesRemaining
public okio.Timeout timeout()
timeout
in interface okio.Sink
public void write(okio.Buffer source, long byteCount) throws java.io.IOException
write
in interface okio.Sink
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in interface okio.Sink
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
java.io.IOException