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, timeoutFixedLengthSource(long length)
throws java.io.IOException
java.io.IOExceptionpublic long read(okio.Buffer sink,
long byteCount)
throws java.io.IOException
read in interface okio.Sourceread in class Http1Codec.AbstractSourcejava.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOException