final class Http2Stream.FramingSink
extends java.lang.Object
implements okio.Sink
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
closed |
private static long |
EMIT_BUFFER_SIZE |
(package private) boolean |
finished
True if either side has cleanly shut down this stream.
|
private okio.Buffer |
sendBuffer
Buffer of outgoing data.
|
| Constructor and Description |
|---|
FramingSink() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
private void |
emitFrame(boolean outFinished)
Emit a single data frame to the connection.
|
void |
flush() |
okio.Timeout |
timeout() |
void |
write(okio.Buffer source,
long byteCount) |
private static final long EMIT_BUFFER_SIZE
private final okio.Buffer sendBuffer
boolean closed
boolean finished
public void write(okio.Buffer source,
long byteCount)
throws java.io.IOException
write in interface okio.Sinkjava.io.IOExceptionprivate void emitFrame(boolean outFinished)
throws java.io.IOException
java.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in interface okio.Sinkjava.io.IOExceptionpublic okio.Timeout timeout()
timeout in interface okio.Sinkpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface okio.Sinkjava.io.IOException