private final class Http2Stream.FramingSource
extends java.lang.Object
implements okio.Source
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
closed
True if the caller has closed this stream.
|
(package private) boolean |
finished
True if either side has cleanly shut down this stream.
|
private long |
maxByteCount
Maximum number of bytes to buffer before reporting a flow control error.
|
private okio.Buffer |
readBuffer
Buffer with readable data.
|
private okio.Buffer |
receiveBuffer
Buffer to receive data from the network into.
|
private Headers |
trailers
Received trailers.
|
Constructor and Description |
---|
FramingSource(long maxByteCount) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
read(okio.Buffer sink,
long byteCount) |
(package private) void |
receive(okio.BufferedSource in,
long byteCount) |
okio.Timeout |
timeout() |
private void |
updateConnectionFlowControl(long read) |
private final okio.Buffer receiveBuffer
private final okio.Buffer readBuffer
private final long maxByteCount
private Headers trailers
boolean closed
boolean finished
public long read(okio.Buffer sink, long byteCount) throws java.io.IOException
read
in interface okio.Source
java.io.IOException
private void updateConnectionFlowControl(long read)
void receive(okio.BufferedSource in, long byteCount) throws java.io.IOException
java.io.IOException
public okio.Timeout timeout()
timeout
in interface okio.Source
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface okio.Source
java.io.IOException