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