private class Http1ExchangeCodec.FixedLengthSource extends Http1ExchangeCodec.AbstractSource
Modifier and Type | Field and Description |
---|---|
private long |
bytesRemaining |
closed, timeout
Constructor and Description |
---|
FixedLengthSource(long length) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
read(okio.Buffer sink,
long byteCount) |
responseBodyComplete, timeout
public long read(okio.Buffer sink, long byteCount) throws java.io.IOException
read
in interface okio.Source
read
in class Http1ExchangeCodec.AbstractSource
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException